6a44cf0124
editor/reformat: refactor & fixes
...
+ Change +format-type to +format-region-p (now a boolean)
+ Add PRESERVE-INDENT-P boolean argument to +format-buffer
+ Add +format-preserve-indentation variable (only controls indent
preservation during +format/buffer, not +format/region, where it's
always enabled).
+ Fix error arising from +format|buffer hook when no formatter is
defined for the current mode #893
+ Change +format|buffer to alias for +format/buffer.
2018-09-18 15:19:50 -04:00
4067c8937e
Remove doom-major-mode-names & doom|set-mode-name
...
And replace it with buffer-local mode-name setters. This is more
explicit and less magical, which is easier for users to discover and
change, if they'd like.
2018-09-18 15:19:50 -04:00
b7be38b2a9
New incremental lazy-loading at startup
...
This is for loading large packages (like org and magit) quietly in the
background during idle time. It is already set up to incrementally load
org and magit.
This is still experimental, however. the idle timers may need to be
tweaked.
2018-09-18 11:42:35 -04:00
9684b34389
lang/markdown: fix next/previous link keybinds
...
They were the other way around.
2018-09-14 09:41:06 -04:00
5145e7e822
lang/python: tab-width = python-indent-offset #882
...
This fixes evil-shift-width too (which is set to tab-width by
evil-collection-python).
2018-09-13 19:15:15 -04:00
8575ddc136
Merge pull request #881 from rynffoll/feature/ansible
...
Add tools/ansible
2018-09-13 19:14:46 -04:00
2abb452e83
Merge pull request #885 from dywedir/patch-1
...
lang/rust: add `cargo check` localleader keybind
2018-09-13 19:11:36 -04:00
9d445c8a1f
make compile: fix error in emacs-lisp
...
```
In toplevel form:
../modules/lang/emacs-lisp/autoload.el:71:21:Error: Wrong type argument: listp, "~/.emacs.d/modules/lang/emacs-lisp/autoload"
✕ Failed to compile modules/lang/emacs-lisp/autoload.el
```
This apparently attempts to get compiled multiple times, avoid that by
attempting to compile only if it is not compiled already.
2018-09-12 22:55:13 +01:00
6eb95c98ea
Fix bin/doom -d compile
: org-attach-directory not defined
2018-09-12 22:55:13 +01:00
cd22434df0
lang/rust: add cargo check
localleader keybind
2018-09-12 23:32:17 +03:00
62212a4b94
Add tools/ansible
2018-09-11 22:42:05 +03:00
ed702bab16
lang/ess: minor reformatting
...
Make hooks stand out a little more.
2018-09-10 22:39:11 -04:00
ae6d106dce
lang/ess: update to reflect changes upstream #880
2018-09-10 22:36:37 -04:00
f54c36e721
lang/common-lisp: revise sly popup rules
...
Fixes issues with the compilation, inspector, debug or trace buffers
replacing the repl popup.
2018-09-10 12:50:45 -04:00
08d9c02218
lang/go: fix formatter
...
`use-region-p` is not a reliable mechanism for detecting region-type
formatting, so +format-type was added to the editor/format module.
2018-09-10 08:25:48 -04:00
f115e4a883
lang/javascript: fix hijacked SPC in insert mode #876
2018-09-09 23:15:55 -04:00
1535a8d64a
lang/clojure: move flycheck-joker block
2018-09-09 16:35:16 -04:00
59b1f7cd9b
Merge pull request #873 from mattly/clojure-flycheck-joker
...
Syntax-checking for clojure via joker
2018-09-09 16:34:43 -04:00
ca033e714c
Remove +joker flag for clojure layer
...
Flycheck apparently won't complain if joker isn't installed
2018-09-09 10:15:20 -07:00
a64b06aa77
lang/data: remove dockerfile-mode
...
Now in tools/docker
2018-09-09 10:05:14 -04:00
d73f488c11
lang/ruby: add indent detection support
...
It already exists for ruby-mode, but not enh-ruby-mode. This fixes that.
2018-09-09 09:58:23 -04:00
bc092acaee
lang/go: use gofmt for partials
...
goimports (if available) doesn't play well with partial code
reformatting.
2018-09-09 09:58:23 -04:00
90f0765cfb
lang/org: set default for org-refile-targets
...
So org-refile can see your agenda files and files adjacent to the
current one.
2018-09-09 09:58:22 -04:00
6767bb926e
lang/go: rebind conflicting keybinds for go-play-*
...
Fixes a startup error regarding binding to a non-prefix key.
2018-09-09 09:58:22 -04:00
533355d7d5
lang/clojure: fix evil keybinds in cider repl
2018-09-09 09:58:21 -04:00
5c96b0a801
lang/javascript: update set-docsets!
2018-09-09 09:58:21 -04:00
95fa12390d
lang/org: fix unfontified remote links
2018-09-09 09:58:21 -04:00
2019aaff97
lang/javascript: enable xref support in rjsx-mode
2018-09-09 09:58:21 -04:00
001f90df2f
lang/web: update set-docsets! & general refactor
2018-09-09 09:58:21 -04:00
c58077810d
General refactor of modules
...
General code and comment improvements.
Also, removed the :desc's for csv-mode because map! is currently unable
to set which-key descriptions mode-locally, and should be avoided for
anything but global keybinds. This will be fixed when General is
introduced into Doom.
2018-09-09 09:58:20 -04:00
7d3ffdff06
Remove third line in section headers
...
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
a0250e60e3
Add rainbow-delimiters in lang/common-lisp instead
...
Gives users one place to look to determine what cosmetic hooks are
applied in lisp-mode.
2018-09-09 09:58:19 -04:00
48c77b1126
Move helm-css-scss package to lang/web/+css
2018-09-09 09:58:18 -04:00
84abac6b69
Remove def-menu!; use :localleader keys instead
...
def-menu was clumsy. We could use a better UI for refactoring commands,
but they should be available via localleader keybinds in any case.
2018-09-09 09:58:18 -04:00
a198c14f12
Merge pull request #867 from patrl/pgMelpa
...
proof-general now on melpa
2018-09-09 09:42:51 -04:00
9fb9bb1fd2
Merge pull request #872 from rynffoll/bugfix/clj-refactor-bindings
...
Fix clj-refactor bindings
2018-09-09 09:41:14 -04:00
45e22c7e23
add anaconda3 home path '/usr/local/anaconda3'
2018-09-09 17:18:39 +08:00
1f581a4e36
Add option for flycheck-joker for clojure
...
This is provided as a +feature on clojure because joker is not included
in the standard clojure distribution, and I wouldn't assume a given
clojurist has or wants to have it installed. But I think installing it
is the least-fuss option for syntax-checking clojure/script code in
emacs with flycheck.
2018-09-07 20:35:29 -07:00
e28fea3777
Fix clj-refactor bindings
2018-09-08 03:55:11 +03:00
5bfaabd99b
Proof-general is now on melpa
2018-09-06 01:29:01 +02:00
10b22b9750
Merge rjsx-mode pretty-symbols with pre-existing
2018-09-03 23:56:25 +02:00
37b920f461
adds common js pretty symbols for rjsx-mode
2018-09-03 16:38:11 +02:00
818df0afe4
More keybindings
2018-09-03 16:11:08 +02:00
57415658a0
More syntax highlighting
2018-09-03 16:00:40 +02:00
17f0b4c50e
Update syntax highlighting
2018-09-03 15:45:43 +02:00
82651f247e
Fix syntax highlighting
2018-09-03 13:54:49 +02:00
b697ad982e
lang/web: more sensible html-tidy formatter config
...
+ No longer inserts html/body tags unless they're detected in the buffer
+ Respect tab-width and indent-tab-mode
+ Don't auto-remove empty elements
2018-09-03 03:59:24 +02:00
3a23ff56cd
General formatting & minor refactors
2018-09-02 17:20:19 +02:00
92cfcf3627
lang/elixir: conditionally install flycheck-credo
...
And register flycheck-credo after elixir-mode loads.
2018-09-01 16:17:52 +02:00
f52d76bccf
Merge pull request #857 from qleguennec/npm-mode
...
adds npm-mode for javascript module
2018-09-01 13:40:02 +02:00