Commit graph

130 commits

Author SHA1 Message Date
Henrik Lissner
21779f66ad
config/literate: remove compile-on-save hooks
Too volatile and slow.
2018-06-05 16:35:16 +02:00
Henrik Lissner
3245c365d7
config/literate: log compilation 2018-06-05 16:14:38 +02:00
Henrik Lissner
47efd56fd4
compile/literate: refactor & recompile on save
And add autoloaded commands. This may need work to ensure you don't
spawn multiple instances of Emacs all vying to compile the same file.
2018-06-05 16:09:03 +02:00
Henrik Lissner
f5fe36af23
Add :config literate module
It will tangle and byte-compile a config.org in your private config.
Doom will then load the resulting config.elc later.

Org is only loaded when updating this file.
2018-06-05 15:56:37 +02:00
Henrik Lissner
c9bfb58369
Minor, general refactor
Remove redundant keybinds, unused letvars, and fix
doom-module-load-path's docstring referencing its former signature.
2018-06-05 12:04:43 +02:00
Aria Edmonds
3119238f42
config/default: add helm bindings for SPC-i-y 2018-06-05 14:40:26 +10:00
Henrik Lissner
3491ac369f
Translate ESC to [escape] (experimental)
This is to fix a keymapping edge case. It _may_ have other
reprecussions, so it must be tested further!
2018-06-04 21:17:49 +02:00
Henrik Lissner
e13ccf3e08
Rebind SPC q keybinds
SPC q q -> evil-quit-all
SPC q Q -> evil-save-and-quit
SPC q X -> +workspace/kill-session-and-quit
2018-06-04 12:17:57 +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
6e6dfc2215
Implement helm project search functionality #644
Adds +helm/project-search, as well as +helm/ag and +helm/ag-from-cwd,
and variants for rg, pt and grep/git-grep, to mirror the functionality
available to :completion ivy.

Also updates the evil ex commands and keybinds
2018-06-02 20:37:02 +02:00
Henrik Lissner
e4c56d0f15 Fix +default:multi-*-line motions in magit buffers 2018-06-02 18:20:09 +02:00
Henrik Lissner
e5a4415d58
General, minor reformatting/refactor 2018-06-02 13:58:04 +02:00
Henrik Lissner
92fd24ff0f config/default: refactor evil key fixes
Also fixes #643, which is caused because evil is disabled and these
fixes clumsily use evil-define-key* (which won't exist).
2018-06-02 02:39:31 +02:00
Henrik Lissner
3b1f7c02cc
Fix C-S-j/C-S-k keybinds in ivy/minibuffer 2018-06-01 21:12:18 +02:00
Henrik Lissner
1938a0d253
Enforce encrypted authinfo & store in doom-etc-dir
Plaintext authinfo should not be the default.
2018-06-01 17:10:30 +02:00
Henrik Lissner
3a809153f9
Fix scroll-*-command & C-r in minibuffer+ivy
C-u was overwriting backward-kill-sentence & C-r was bound to the
incorrect command for evil users.
2018-06-01 13:58:21 +02:00
Henrik Lissner
bb71e06977
Fix formatting in config/default/+bindings.el 2018-06-01 13:49:40 +02:00
Henrik Lissner
334b6f3adf
tools/dired: SPC o - => dired-jump; show symlink targets
Inspired by #625
2018-06-01 13:46:52 +02:00
Henrik Lissner
82f240ffc9
Bind SPC h w to +default/man-or-woman #639
Woman is essentially elisp-only Man; useful for systems without
man (Windows, particularly).
2018-06-01 12:13:56 +02:00
Henrik Lissner
592205e1dd
Fix borked keys in insert mode
Due to unescapted ctrl key specs.
2018-06-01 02:42:36 +02:00
Henrik Lissner
4d9ddf27a9
Fix over-zealous evil-integration in ivy #636 2018-06-01 02:18:46 +02:00
Henrik Lissner
3359d351f5
Add define-key! macro; refactor config/default key fixes
I'd like to phase out map! where it isn't absolutely necessary, since it
isn't very well optimized.
2018-06-01 02:17:10 +02:00
Henrik Lissner
6ecdd390c1
config/default: reformat +bindings.el
<leader> and general keybinds are now separate (easier to fold or
navigate).
2018-05-31 13:59:21 +02:00
Henrik Lissner
3a16b70022
Add +magit/clone command & bind to SPC g C #633
magithub-clone doesn't support full urls, magit-clone doesn't support
user/repo notation. +magit/clone supports both.
2018-05-31 13:59:21 +02:00
Henrik Lissner
183ccbb8f1
Merge evil-collection-ivy into completion/ivy
Disables evil-collection-ivy. Another step toward the removal of
evil-collection from Doom.
2018-05-31 13:59:21 +02:00
Henrik Lissner
5b31fd9505
Use company-dabbrev-code in prog-modes & company-dabbrev everywhere else 2018-05-28 00:08:14 +02:00
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
4c2554c22b
config/default: rethink term/eshell keybinds 2018-05-26 21:20:57 +02:00
Henrik Lissner
13267250a4
Add :collab floobits #615 2018-05-26 21:20:30 +02:00
Henrik Lissner
81d3fe4a82
config/default: fix missing +ivy-do-action! error when ivy module is disabled 2018-05-25 11:54:52 +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
4c73ac0111
config/default: Fix evil-collection anti-hacks #604 2018-05-24 22:34:37 +02:00
Henrik Lissner
592e16d76d
Conform debug commands to naming convention 2018-05-24 16:40:37 +02:00
Henrik Lissner
4e18722d49
config/default: update doom help/debug keybinds 2018-05-21 18:34:33 +02:00
Henrik Lissner
af97dcdfe8
config/default: add SPC-g-o/SPC-g-I for browsing remote/issues 2018-05-21 18:34:33 +02:00
Henrik Lissner
1b8dce260b
config/default: restore find-in-snippets command #597
And conditionally bind snippets keybinds
2018-05-21 18:34:33 +02:00
Henrik Lissner
72b9e80cde
config/default: add :rev[erse] command (reverse lines) 2018-05-18 01:46:04 +02:00
Henrik Lissner
170b7f97e7
config/default: rebind I/J indent textobjects to k/j 2018-05-18 01:44:17 +02:00
Henrik Lissner
34b6d4d0cf
config/default: move evil-easymotion keybinds into +bindings.el
It's easier to see and discover this way.
2018-05-16 23:50:50 +02:00
Henrik Lissner
42bdb848b5
config/default: add ]a/[a motions for arguments 2018-05-16 23:42:25 +02:00
Henrik Lissner
3e6d6279a6
ui/evil-goggles: remove unnecessary toggle wrapper command 2018-05-16 13:06:07 +02:00
Henrik Lissner
984a0c8b6c
config/default: SPC h R = doom//reload 2018-05-15 10:54:45 +02:00
Henrik Lissner
9a2c4f297c
Fix void macro errors after byte-compiling 2018-05-15 03:24:30 +02:00
Henrik Lissner
2712d606c2
config/default: remove unnecessary after! blocks 2018-05-14 20:42:48 +02:00
Henrik Lissner
e44fd886f2
Appease byte-compiler-sama 2018-05-14 20:37:13 +02:00
Henrik Lissner
6e3f500a39
completion/ivy: ivy-use-selectable-prompt = t
Solves the "I want to enter something new, but it also is a part of
a match" issue. Thanks to @gilbertw1 for letting me know about this.

As such, the C-RET keybind from 310d81ab is no longer necessary
2018-05-14 20:37:13 +02:00
Henrik Lissner
310d81ab4a
config/default: in ivy, bind C-RET = ivy-immediate-done 2018-05-14 14:57:24 +02:00
Henrik Lissner
72465fd5a0
config/default: bind SPC q r/R to reload/restart Doom 2018-05-14 13:05:03 +02:00
Henrik Lissner
370dacf2a2
config/default: refactor evil-collection fixes 2018-05-14 13:05:03 +02:00
Henrik Lissner
2bbee08105
feature/lookup: new command +lookup/file to replace gf 2018-05-14 13:05:03 +02:00