Commit Graph

495 Commits

Author SHA1 Message Date
Henrik Lissner
1a452b6842 💥 Change first arg of load! macro
load!'s first argument is no longer a symbol (that will cause
void-variable errors now) to save on unnecessary interning and simplify
compile-time logic. It accepts any valid form that evaluates to a string
now.

If you use load!, you need to change its argument to a string!

e.g. (load! +my-module) => (load! "+my-module")
2018-05-27 12:52:28 +02:00
Henrik Lissner
e2d055a40b 💥 Move dired, electric-indent, eshell, imenu, term modules to :emacs 2018-05-27 12:52:28 +02:00
Henrik Lissner
6bfac0ada2 tools/eshell: fix split-window behavior not burying eshell
This happens when there is no other buffer to replace it with.
2018-05-26 21:22:40 +02:00
Henrik Lissner
8c053fcfa5 tools/eshell: remove useless remove-hook call
You can't remove a hook function from a global hook list buffer locally.
2018-05-26 21:21:56 +02:00
Henrik Lissner
e70b1af49f Bind RET to +eshell/goto-end-of-prompt from normal mode
This command enters insert state.
2018-05-26 21:09:10 +02:00
Henrik Lissner
c1c3a0987c Better move-to-prompt-on-insert-mode hook for eshell 2018-05-26 21:09:10 +02:00
Henrik Lissner
177bf2a9de Fix evil change/delete operators in eshell buffers
evil-{change,delete}{,-line} now jump to the prompt before trying to
modify the buffer.
2018-05-26 21:09:10 +02:00
Henrik Lissner
6e82e6fa19 tools/term: fix void-function error due to misplaced reference to +eshell-p 2018-05-25 01:59:15 +02:00
Henrik Lissner
0348686cce tools/eshell: change split behavior to open non-eshell window 2018-05-25 01:00:04 +02:00
Henrik Lissner
cce30367bb tools/eshell: fix naive path concatenation for eshell-directory-name 2018-05-25 00:58:09 +02:00
Henrik Lissner
cf3c0d808d tools/tmux: minor refactor of +tmux/rerun 2018-05-25 00:53:46 +02:00
Henrik Lissner
be9a06b126 tools/magit: add magit-gitflow 2018-05-25 00:53:04 +02:00
Henrik Lissner
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
0b48575c14 Remove def-hydra! macro alias
Causes byte-compilation issues and the alias is unnecessary.
2018-05-24 22:03:19 +02:00
Henrik Lissner
3d0745c3ec Add automatic indentation-detection (experimental)
Editorconfig is given precedence. If it successfully sets an
indent_style or indent_size for the current buffer, automatic
indentation detection will be disabled.
2018-05-18 01:28:41 +02:00
Henrik Lissner
b1dce548ad tools/eshell: consider eshell buffers real 2018-05-18 01:26:41 +02:00
Henrik Lissner
8807471846 tools/eshell: fix parameters being set on the wrong window
This would cause find-file commands to ignore certain windows, as well
as eshell buffers closing the incorrect window when they are quit.

Addresses #593
2018-05-18 01:26:41 +02:00
Henrik Lissner
45c21a5a83 Move :feature services => :tools prodigy 2018-05-16 22:41:21 +02:00
Henrik Lissner
0fe551983e Merge pull request #577 from ppwwyyxx/patch-3
Update imenu/config.el
2018-05-15 12:05:49 +02:00
Henrik Lissner
5ab790c07d tools/eshell: default to ~/.doom.d/eshell or ~/.eshell 2018-05-15 01:57:40 +02:00
Henrik Lissner
ba2fb4a82d tools/eshell: remove custom aliases
That belongs in my private module
2018-05-15 01:33:22 +02:00
Henrik Lissner
a3800f3949 tools/eshell: set eshell-directory-name if ~/.doom.d/eshell exists 2018-05-15 01:33:07 +02:00
Henrik Lissner
84fc356e40 tools/eshell: dedicate eshell windows
Disallow commands to change their buffer non-interactively.
2018-05-15 01:32:08 +02:00
Henrik Lissner
abb4d5a009 Move :tools impatient-mode to new :collab category 2018-05-14 21:23:48 +02:00
Henrik Lissner
42e44a6cc9 tools/eshell: autoload custom faces & add :group 2018-05-14 13:05:03 +02:00
Henrik Lissner
99eef125b0 Move :tools neotree => :ui neotree 2018-05-14 13:05:03 +02:00
Yuxin Wu
d31fcb2131 Update config.el 2018-05-13 23:03:17 -07:00
Henrik Lissner
aa9ee68248 tools/tmux: fix +tmux/cd 2018-05-09 12:31:02 +02:00
Henrik Lissner
8d936f2d0b Move editorconfig out of core into tools/editorconfig 2018-05-08 19:59:08 +02:00
Henrik Lissner
39b08b4d05 tools/magit: fix leader key in magit-blame 2018-04-23 17:50:51 -04:00
Henrik Lissner
adb3fdbdce tools/make: make +make/run more robust; add +make/run-last #543 2018-04-20 04:14:30 -04:00
Henrik Lissner
66c98b8add Merge pull request #535 from fuxialexander/ein_update
EIN module updates & fixes
2018-04-18 20:37:53 -04:00
Henrik Lissner
485d0dfd39 Merge branch 'develop' into patch-1 2018-04-18 00:21:45 -04:00
fuxialexander
04d80fba9d Fix: make company config more doom-ish 2018-04-18 12:11:52 +08:00
fuxialexander
ae80c06067 Fix: company config and default setting of ein:jupyter-default-server-command 2018-04-18 12:06:02 +08:00
fuxialexander
1a329abc26 Add: +ein/hydra 2018-04-18 12:05:31 +08:00
fuxialexander
5dea4a858e Fix: ein popup rules 2018-04-18 12:05:02 +08:00
Edmund Miller
5025c40eae Update config.el
Final version
2018-04-17 22:26:20 -05:00
Henrik Lissner
c0707a2c64 Merge pull request #524 from UndeadKernel/ein_module
EIN module to work with Jupyter notebooks
2018-04-17 21:23:08 -04:00
Henrik Lissner
c3c6b5b4de Merge pull request #525 from UndeadKernel/fix_latex_and_pdftools
Better PDF Tools and LaTeX interaction
2018-04-17 21:21:36 -04:00
Edmund Miller
b8c0491245 Update config.el
Fixed the error of removing the `q` keybinding.
2018-04-16 09:56:32 -05:00
Edmund Miller
793b94a937 Update config.el
Fix doom leader not working in pdf mode. 

Replaces SPC default that moves the document down a page.
2018-04-15 22:18:34 -05:00
UndeadKernel
12fd06d4e6 Uncluttered custom modeline to show page numbers
Add rules to handle windows that should not be considered as popups.
2018-04-12 16:03:48 +02:00
Henrik Lissner
94138a686b tools/term: change +term/open-popup* universal-arg behavior
+ +term/open-popup: opens a term in default-directory. If ARG, opens
  term in project root.
+ +term/open-popup-in-project: opens term in project root. If ARG, opens
  term in default-directory.
2018-04-12 05:28:09 -04:00
Benjamin Andresen
8917bc9194 Fix: tools/magit: +magit--kill-buffer function call corrected 2018-04-12 00:41:38 +02:00
UndeadKernel
0a23c30e06 Make PDF tools and LaTeX work better together.
Update the README file to reflect the available flags.
2018-04-11 13:02:58 +02:00
UndeadKernel
ea7663d4ea EIN module to work with Jupyter notebooks 2018-04-11 12:34:08 +02:00
Henrik Lissner
460461ef54 tools/magit: clean up after magit more intelligently #506
Ensures magit buffers are cleaned up after magit-status is closed. Will
defer cleanup on process buffers, until the processes have finished.

Also fixes issue where quitting magit will leave leftover windows.
2018-04-08 20:44:40 -04:00
Henrik Lissner
163d0ce70e tools/magit: don't kill processes 2018-04-04 09:35:39 -04:00
Henrik Lissner
b98e26856d Add tools/magit/autoload.el 2018-04-04 08:04:54 -04:00