Commit Graph

4848 Commits

Author SHA1 Message Date
Henrik Lissner
a1580e5919
config/private: wrap init.el in file-directory-p check 2018-02-17 18:41:47 -05:00
Henrik Lissner
ef4962c702
feature/file-templates: new +file-templates/insert-license command 2018-02-17 18:41:21 -05:00
Henrik Lissner
aa216af4d6
feature/file-templates: add+polish license file templates 2018-02-17 18:40:49 -05:00
Henrik Lissner
70c8e3cb52
app/rss: bind M-RET = open entry in browser 2018-02-17 04:56:27 -05:00
Henrik Lissner
9f471806fe
app/rss: add :popup rule for elfeed-entry windows 2018-02-17 04:56:16 -05:00
Henrik Lissner
d8be0a5f4c
app/rss: move default elfeed file 2018-02-17 04:56:03 -05:00
Henrik Lissner
8240771846
app/rss: fix +rss/quit & compact db 2018-02-17 04:55:35 -05:00
Henrik Lissner
0c459cfefd
lang/org: make backspace org-mode aware
This ensures backspace respects tables and doesn't break whitespace in
table cells.
2018-02-17 03:40:40 -05:00
Henrik Lissner
8efd5d1eae
Fix make clean not catching all *.elc files 2018-02-16 23:28:18 -05:00
Henrik Lissner
d91481a9a0
Add private module to load-path
This fixes autoload cookies in private autoload files (e.g.
~/.doom.d/autoload/file.el).
2018-02-16 23:26:44 -05:00
Henrik Lissner
f8bf86e1a3
ui/doom-dashboard: add button to open private module 2018-02-16 21:02:46 -05:00
Henrik Lissner
2b43dd42e2
Refactor doom-hide-modeline-mode 2018-02-16 21:02:46 -05:00
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