Commit graph

1485 commits

Author SHA1 Message Date
Henrik Lissner
3b0fad871f
Add :lang common-lisp doctor 2018-06-15 03:42:01 +02:00
Henrik Lissner
d8b1e469bc
Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
Henrik Lissner
6693db48af
Mark +org-dir obsolete (use org-directory instead)
I prefer not to invent new variables when they aren't strictly
necessary. org-directory is one such variable (although the other path
variables are still necessary).
2018-06-15 01:05:22 +02:00
Henrik Lissner
0020631b2e
Fontify autodef/if cookies & *! symbols in elisp 2018-06-14 19:52:15 +02:00
Henrik Lissner
6a6652d394 lang/common-lisp: replace slime with sly
Also add sly server auto-start and cleanup hooks.
2018-06-13 22:14:22 +02:00
Henrik Lissner
8889d5cc2b
Add :lang common-lisp 2018-06-13 20:10:37 +02:00
Henrik Lissner
6dc413c044
Remove :latex-bibtex-{file,dir} settings
Setting a single variable is preferrable to using a setting to abstract
it.
2018-06-12 21:07:34 +02:00
Henrik Lissner
f70c9ebb71
Fix void-symbol errors in compilation buffers
Occurs when :lang ruby is enabled, because the rspec-mode package
autoloads an advice, but not the advice function. Still, it seems silly
to do this advice before the package is loaded, so we disable it.
2018-06-11 14:21:35 +02:00
Henrik Lissner
2fa95218cb
Merge pull request #652 from Emiller88/feature/conda
Add +conda
2018-06-10 22:30:47 +02:00
Henrik Lissner
8dd0df453f
Merge pull request #667 from UndeadKernel/fix-latex_default-item-indent
Better looking default indentation for nested latex lists
2018-06-10 22:28:08 +02:00
Henrik Lissner
ef154ac033
Merge pull request #672 from mdssjc/clojure-hook-fixed
Clojure hook fixed
2018-06-10 22:26:36 +02:00
Henrik Lissner
1afc5965df
add-hook! -> add-hook for one-to-one hook 2018-06-10 22:25:29 +02:00
Henrik Lissner
f387be61e5
Merge pull request #675 from ethercflow/develop
lang/cc: set rtags-install-path to ${doom-etc-dir}/rtags/
2018-06-10 21:57:50 +02:00
Henrik Lissner
7f31704815
Minor reformatting of org-agenda config 2018-06-10 17:28:17 +02:00
Henrik Lissner
9bd5cb862d
Don't set org-agenda-files by default
Leave this to the user
2018-06-10 17:28:17 +02:00
Zwb
3ccd459ddb lang/cc: set rtags-install-path to ${doom-etc-dir}/rtags/ 2018-06-10 22:33:26 +08:00
Marcelo dos Santos
ad5afa1ab2 Fix the hook variable 2018-06-09 13:26:36 -03:00
UndeadKernel
dfa955dd2c Better looking default indentation for nested latex lists 2018-06-08 16:10:00 +02:00
Henrik Lissner
56b4cba964
Fix solium error preventing solidity-mode #659
Now conditionally activates flycheckers using the existence of their
binaries at load time.
2018-06-08 13:08:37 +02:00
UndeadKernel
363407d9e6 Fix C-g resetting latex windows after opening the reftex-toc 2018-06-07 13:53:13 +02:00
fuxialexander
1d6d11e803 add meta doc 2018-06-07 01:12:03 +08:00
fuxialexander
732c2979c4 Naming convention and add docs; Avoid conflicting pyenv. 2018-06-07 01:08:49 +08:00
Edmund Miller
fada449bd4 Get rid of a stray + 2018-06-05 18:02:46 -05:00
Henrik Lissner
7b1a83079d
Fix C-j being treated as a prefix in lang/latex 2018-06-05 10:45:26 +02:00
Aria Edmonds
022a64d2e3
rtags is rdm not rtags
silly henrik
2018-06-05 17:40:54 +10:00
Henrik Lissner
3c52c36c2f
lang/cc: general refactor
For idempotence and to group dependencies so certain sub-packages (like
irony's) aren't loaded if irony is disabled.
2018-06-05 02:29:44 +02:00
Edmund Miller
686d102ee7 Add conda 2018-06-04 18:42:15 -05:00
Henrik Lissner
1d9ae834f2
Minor refactors & docstring revision
These are not the refactors you are looking for.
2018-06-04 21:17:49 +02:00
Henrik Lissner
84c17b0413
Add docstring to +org-pretty-mode 2018-06-04 21:17:49 +02:00
Henrik Lissner
23bd9d3efa
Add FILE support to +org-get-property & optimize
Can now be used to grab properties from remote org files. Also only
reads the first 2048 bytes of the document by default, for performance
reasons.
2018-06-04 21:17:49 +02:00
Henrik Lissner
7493c953fd
Restore gQ -> org-fill-paragraph key in org-mode
When gq is insufficient.
2018-06-04 21:17:49 +02:00
Henrik Lissner
8cf407caff
Re-init custom keys after evil-org-set-key-theme
evil-org-set-key-theme blanks out evil-org-mode-map, undoing all our
custom keybinds. Using it isn't the correct way to customize evil-org,
but it is understandable people would use it expecting it to be, so
`+org|setup-evil` will now run after it is called.

The "Doom" way to customize evil-org would be to modify the
`evil-org-key-theme` variable, but with this change, either will work.
2018-06-04 21:17:49 +02:00
Henrik Lissner
f7a6089956
Restore vim zr, zR, zm, & zM folding in org-mode
For evil users.
2018-06-04 21:17:49 +02:00
Henrik Lissner
b7d619fc8e
Fix objc-mode auto-mode-alist regexp
It had no line terminator.

COME WITH ME IF YOU WANT TO LIVE.
2018-06-04 00:12:02 +02:00
Henrik Lissner
7cd97588e6
lang/cc: change default standard to c++1z 2018-06-04 00:11:13 +02:00
Henrik Lissner
e2bf520682
Fix dwim RET keybind in evil org-mode
Accidentally removed in 1e81a354
2018-06-03 16:18:02 +02:00
Henrik Lissner
32a2a2b64d
General, minor refactor
+ Group hooks with add-hook!
+ Sharpquote elfeed call
+ Extract elfeed buffer detector into function and ensure idempotency of
  doom-real-buffer-functions
2018-06-03 15:51:59 +02:00
Henrik Lissner
b81ac61d84
Remove unnecessary markdown-toc def-package! block
markdown-toc-generate-toc is autoloaded by the package, so we don't need
to.
2018-06-03 15:50:46 +02:00
Henrik Lissner
1e81a35461
Minimize dependence on map!
This is in preparation for general.el integration coming in 2.1.1. It is
very likely that map! will change (and even more, be split into several
macros). Not much, but change none-the-less. Specifically, the state
keywords (e.g. :nvi, :n, :i) will be removed in favor of a :state
property that takes a list, e.g. (normal visual insert).

In any case, both map! and general are also relatively expensive
compared to define-key and evil-define-key* (and the new define-key!
macro), so use that when we can.

This also means changes to either API won't affect Doom's modules in the
long term.
2018-06-03 15:46:00 +02:00
Henrik Lissner
3d893ea53e
Update org-format-latex-options when theme changes 2018-06-03 12:23:17 +02:00
Henrik Lissner
f9be8887fb
lang/org: minor refactor/reformatting
Also reduce internal use of map! (toward eventual switch to general)
2018-06-03 12:22:39 +02:00
Henrik Lissner
ae86498a41
Tie evil-org/evil-org-agenda to +everywhere flag 2018-06-03 12:20:16 +02:00
Henrik Lissner
da9096acac
Fix evil-org-mode keybinds on first org buffer
evil keeps track of auxiliary keymaps. This list is updated when you
switch states, but it _really_ needs to be updated when minor
modes (with keymaps) are toggled. When this isn't done, their keymaps
aren't recognized and their keys will be unavailable at first.

Since there is no global hook for enabling minor modes, we have to
manually add evil-normalize-keymaps to minor mode hooks.

This commit, specifically, fixes evil-org-mode-map. This also indirectly
fixes folding src blocks for evil users (on the first org buffer).
2018-06-03 12:08:33 +02:00
Henrik Lissner
ad5713cd78
add-hook 'nose-mode-hook #'evil-normalize-keymaps
Ensures nose-mode-map keybinds work in nose-mode.
2018-06-03 11:21:32 +02:00
Henrik Lissner
bcc01628a3
Remove anaconda-view-mode-map keybinds
It, with anaconda-view-mode, have been removed upstream.
2018-06-03 11:20:43 +02:00
Henrik Lissner
2761e8c841
lang/org: switch to hard word wrapping
Evil's motions are gimped in soft-wrapped buffers. It also hurts
performance.
2018-06-03 01:38:51 +02:00
Henrik Lissner
29ed19b612
lang/elm: wrap elm-mode config in after! block 2018-06-02 21:42:11 +02:00
Henrik Lissner
385cb476ba
Fix redundant minor mode entries in elisp imenu 2018-06-02 15:22:41 +02:00
Henrik Lissner
e5a4415d58
General, minor reformatting/refactor 2018-06-02 13:58:04 +02:00
Henrik Lissner
c747bc46e3
Optimize lang/qt #642 2018-06-02 02:53:54 +02:00