Commit Graph

4836 Commits

Author SHA1 Message Date
Henrik Lissner
62dc472dfe
Remove vestigial :private hlissner from init.test.el 2018-02-16 05:42:37 -05:00
Henrik Lissner
e7c9f5c08f
Fix over-zealous path resolution
This issue made it impossible enable default modules from private doom!
blocks.
2018-02-16 05:33:27 -05:00
Henrik Lissner
bae226b94f
Refactor to revolve module tree roots around doom! calls
Any module can now use a doom! call to declare a module tree root.

This means that if you have a doom! block in
~/.emacs.d/modules/lang/org/init.el, then you can have submodules in
~/.emacs.d/modules/lang/org/modules/MODULE/SUBMODULE if you wanted to
for some reason.

This is only really truly useful for private modules. A doom! block in
~/.doom.d/init.el will recognize and enable modules in
~/.doom.d/modules/.
2018-02-16 05:07:46 -05:00
Henrik Lissner
d04a1fa940
Remove doom-module-pairs 2018-02-16 04:47:02 -05:00
Henrik Lissner
f864931643
Fix gibberish (char codes) in load-path 2018-02-16 03:11:28 -05:00
Henrik Lissner
78fe91ce10
feature/file-templates: update header line in doom templates 2018-02-16 02:12:58 -05:00
Henrik Lissner
540e74a6aa
Remove accidental file 2018-02-16 02:12:01 -05:00
Henrik Lissner
d2436650a3
Move server+benchmark code into doom|finalize 2018-02-16 02:11:41 -05:00
Henrik Lissner
2b1c323dbf
💥 Redesign private sub-module system
~/.doom.d/modules is now a full module tree, like ~/.emacs.d/modules.
Symlinks are no longer involved.

Private modules can now shadow Doom modules. e.g.
~/.doom.d/modules/lang/org will take precendence over
~/.emacs.d/modules/lang/org.

Also, made doom--*-load-path variables public (e.g. doom--site-load-path
=> doom-site-load-path), and rearranged the load-path for a 10-15%
startup boost.
2018-02-16 02:11:10 -05:00
Henrik Lissner
8ca4fbd8fe
config/private: refactor symlink code 2018-02-15 03:39:12 -05:00
Henrik Lissner
0e6540fb8f
Fix featurep! in private submodules
You'll have to use the full form to use featurep! in the private module
root, but now the short form will work in the nested submodules.
2018-02-15 03:36:32 -05:00
Henrik Lissner
800f8c4739
config/default: remove default yasnippet directory
Otherwise, ~/.emacs.d/snippets is always created.
2018-02-15 01:34:12 -05:00
Henrik Lissner
a5a8ca617a
Revise config/default comment in init.example.el 2018-02-14 23:42:45 -05:00
Henrik Lissner
43360b5f00
Add lang/ess to init.example.el 2018-02-14 23:36:36 -05:00
Henrik Lissner
b3dcba54eb
Add config/private; for ~/.doom.d & ~/.config/doom support #406
A modules/ submodule will be symlinked to ~/.emacs.d/modules/private.
2018-02-14 23:36:35 -05:00
Henrik Lissner
6d7db48dc1
💥 Move :private modules to :config 2018-02-14 23:36:27 -05:00
Henrik Lissner
dfefbd0176
Fix make test not resetting doom-modules properly 2018-02-14 21:18:56 -05:00
Henrik Lissner
0fb72805ab
lang/web: new comment-indent-function for css/scss-mode
Adds +css/comment-indent-new-line, since the built-in default performs
poorly in CSS buffers. This is experimental.
2018-02-14 20:58:38 -05:00
Henrik Lissner
5bee5c95ee
lang/web: refactor +css/toggle-inline-or-block
Remove evil dependency + make more robust.
2018-02-14 20:55:43 -05:00
Henrik Lissner
4321f20b3e
Appease byte-compiler-sama 2018-02-14 20:54:53 -05:00
Henrik Lissner
ae52b2ff60
Fix empty load-file-name in warn! macro during byte-compilation 2018-02-14 20:52:25 -05:00
Henrik Lissner
0f404a513a
Fix overaggressive backspace
delete-backward-char would kill adjacent delimited regions:

1. |
   (...)
2. (|...)
2018-02-14 16:46:01 -05:00
Henrik Lissner
fa19eaf8e0
private/default: add tab yas-expand keybind for emacs states 2018-02-14 15:14:07 -05:00
Henrik Lissner
a22e4ca9d9
Merge pull request #421 from benj02/patch-1
Fix keybinding
2018-02-14 15:10:37 -05:00
Henrik Lissner
6094d8407d
tools/pdf: defer pdf-tools 2018-02-14 07:47:22 -05:00
Henrik Lissner
0ccdc065f9
lang/haskell: fail gracefully if stack isn't installed 2018-02-14 07:47:22 -05:00
Henrik Lissner
871883cd89
lang/hy: set :repl, :company-backend & :interpreter 2018-02-14 07:47:22 -05:00
Henrik Lissner
373d4f25b5
lang/elm: set :repl & load autoloads 2018-02-14 07:47:22 -05:00
Henrik Lissner
c94893c6ba
lang/lua: fix localleader key hijacking SPC 2018-02-14 07:47:22 -05:00
Henrik Lissner
0e1cf10c0f
Update doom module readme file template 2018-02-14 07:47:22 -05:00
Henrik Lissner
6c4e048c23
General refactor & cleanup 2018-02-14 07:47:22 -05:00
Henrik Lissner
bac73ec938
Replace warn => warn! 2018-02-14 07:46:38 -05:00
Henrik Lissner
5ad4246cb9
lang/clojure: refactor; rainbow-delimiters-mode; :lookup
Also add auto-mode-alist entry for clojurec-mode
2018-02-14 06:08:30 -05:00
Henrik Lissner
d634a7e69d
lang/go: put keybinds in evil maps to fix hijacked SPC in go-mode 2018-02-14 05:53:53 -05:00
Henrik Lissner
38903d07e8
lang/go: relax warnings
+ Don't default to goimports unless it's available.
+ No warning if goimports is missing.
2018-02-14 05:52:08 -05:00
Henrik Lissner
57adae5ec6
Introduce more opinionated backspace/del/newline behavior
+ Instead of remapping delete-backward-char to doom/delete-backward-char
  (which was unreliable, depending on the mode), it is now overridden
  with it, without sacrificing its original functionality. The new
  behavior is as follows:
  + Fall back to sp-backward-delete-char when it makes sense to delete
    the adjacent pair: {|} => |
  + Collapse an indented pair block, if at bolp in between: {
      |
    } => {|}
  + Refresh a pair's :post-handlers when deleting into pair: {
      |
    } => {|} => {
      |
    } (can be repeated)
  + When cursor is preceded by whitespace, delete in increments of
    tab-width.
+ newline-and-indent has been advised to:
  + Only newline when in a string.
  + Continue comment lines consistently (needs more testing!)
  + Falls back to basic newline-and-indent, without affecting whitespace
    in the origin line (it would originally delete-horizontal-space
    before creating a new line).
+ Incorporates a set of reasonable defaults for brace expansion on RET
  or SPC, as mentioned in #343 and #413.

Affects #343, #413
2018-02-14 05:42:51 -05:00
Henrik Lissner
b43743d565
lang/cc: fix smartparens not autopairing/skipping <>
Also removed +cc/autoclose->-maybe -- let smartparens handle this.
2018-02-14 05:40:37 -05:00
Henrik Lissner
11373e0128
Move doom-ansi-apply away from macros + add docstring 2018-02-14 05:40:37 -05:00
Henrik Lissner
5e5d075431
New doom/*-this-file commands; move doom/sudo* to new files library 2018-02-14 05:40:37 -05:00
Ben Johnson
aae7ca258b
Fix keybinding
Both flycheck-mode and toggle-frame-fullscreen seem to be bound to "SPC t f", which means that only the second binding gets applied and there's no binding to toggle flycheck. This PR simply changes the fullscreen binding to capital F.
2018-02-14 00:34:28 -08:00
Henrik Lissner
f6039eaee3
Use delay-warning instead of message in warn! macro 2018-02-14 03:17:51 -05:00
Henrik Lissner
0b9ac52d27
ui/doom-modeline: remove eldoc-eval #420
eldoc has this functionality built-in.
2018-02-13 19:46:25 -05:00
Henrik Lissner
11e5140b98
Fix editorconfig file ext 'guesser' in org-edit-src buffers
Fixes editorconfig not correctly guessing style settings in org-edit-src
buffers.
2018-02-13 19:42:39 -05:00
Henrik Lissner
e79942de2e
lang/org: improve tab indent in src blocks
I realize org-src-tab-acts-natively exists, but it doesn't work for me.
This little fix (plus the next commit's editorconfig fix) should make
tab act much more reliably in src blocks.
2018-02-13 19:41:09 -05:00
Henrik Lissner
5b92c3d99f
lang/org: add evil insert check to +org|indent-maybe 2018-02-13 18:33:36 -05:00
Henrik Lissner
7b70aa9b7d
lang/org: reorganize autoload/org.el. Pedantry intensifies.
Library is now separated into alphabetically sorted sections. So nice
and neat!
2018-02-13 18:19:36 -05:00
Henrik Lissner
d84af58f77
lang/org: refactor tab/backtab/ret keybinds to be less intrusive
Turns out the native TAB/Backtab/RET functionality in org already does
what I've replaced them with (somewhat).

Also, I discovered that the canonical way to modify TAB behavior was
through org-tab-first-hook. So, instead of replacing native
functionality, I've rewritten these keybinds to leverage them.
2018-02-13 18:12:40 -05:00
Henrik Lissner
a05c4cca6c
Fix kill-this-buffer asking to save twice 2018-02-13 17:53:11 -05:00
Henrik Lissner
3080b68c84
app/write: major refactor+rewrite
+ Make synosaurus unconditional
+ Move much of +write-mode into its hook
+ Conform README.org to template and expand it
+ Try to guess langtool-language-tool-jar
+ Update init.example.el entry
+ Remove redundant variables
+ Add +write-text-scale & +text-line-spacing variables
2018-02-13 17:50:58 -05:00
Henrik Lissner
896ca67076
Merge pull request #416 from fuxialexander/write
Enhance +write module
2018-02-13 14:57:06 -05:00