Commit Graph

141 Commits

Author SHA1 Message Date
44363cae40 General, minor refactor & revision
Across the board. All the boards.
2018-06-16 12:26:58 +02:00
e63be83298 Bind SPC f X to doom/delete-this-file 2018-06-15 16:20:20 +02:00
d588332aa0 Fix SPC TAB leader prefix not being recognized
Due to a TAB => [tab] remap later in config/default.
2018-06-15 16:20:20 +02:00
9e54e393ea Use new evil-collection blacklist instead of hook 2018-06-15 16:20:20 +02:00
a500bfb0a0 Rewrite+rename describe-settings->describe-setters
Will now list autodefs instead of def-settings, including an origin
module label to tell you where it comes from at a glance.
2018-06-15 16:20:20 +02:00
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
4c8afef3c9 Merge pull request #673 from zaiste/add-binding-for-git-file-delete
bindings: magit | add `file-delete` as `SPC g x`
2018-06-11 01:33:07 +02:00
0ec4d6ee43 config/literate: earlier check & no byte-compile
Making the compile check happen earlier fixes an edge case where the
resulting files from a literate config being tangled into multiple files
aren't recognized by Doom's package management or autoload generation
systems.

Disabling byte-compiling fixes an all too common issue where packages
and macros are undefined at compile time, causing a plethora of invalid
function errors.

Leave byte-compilation to `bin/doom compile`!
2018-06-10 17:28:17 +02:00
72d87c19c9 bindings: magit | add file-delete as SPC g x 2018-06-09 23:59:52 +02:00
b207c4040b Minor, general refactor 2018-06-07 02:51:46 +02:00
a149313e71 config/default: add gzj/gzk binds for evil-mc 2018-06-07 02:51:46 +02:00
21779f66ad config/literate: remove compile-on-save hooks
Too volatile and slow.
2018-06-05 16:35:16 +02:00
3245c365d7 config/literate: log compilation 2018-06-05 16:14:38 +02:00
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
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
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
3119238f42 config/default: add helm bindings for SPC-i-y 2018-06-05 14:40:26 +10:00
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
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
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
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
e4c56d0f15 Fix +default:multi-*-line motions in magit buffers 2018-06-02 18:20:09 +02:00
e5a4415d58 General, minor reformatting/refactor 2018-06-02 13:58:04 +02:00
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
3b1f7c02cc Fix C-S-j/C-S-k keybinds in ivy/minibuffer 2018-06-01 21:12:18 +02:00
1938a0d253 Enforce encrypted authinfo & store in doom-etc-dir
Plaintext authinfo should not be the default.
2018-06-01 17:10:30 +02:00
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
bb71e06977 Fix formatting in config/default/+bindings.el 2018-06-01 13:49:40 +02:00
334b6f3adf tools/dired: SPC o - => dired-jump; show symlink targets
Inspired by #625
2018-06-01 13:46:52 +02:00
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
592205e1dd Fix borked keys in insert mode
Due to unescapted ctrl key specs.
2018-06-01 02:42:36 +02:00
4d9ddf27a9 Fix over-zealous evil-integration in ivy #636 2018-06-01 02:18:46 +02:00
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
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
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
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
5b31fd9505 Use company-dabbrev-code in prog-modes & company-dabbrev everywhere else 2018-05-28 00:08:14 +02:00
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
4c2554c22b config/default: rethink term/eshell keybinds 2018-05-26 21:20:57 +02:00
13267250a4 Add :collab floobits #615 2018-05-26 21:20:30 +02:00
81d3fe4a82 config/default: fix missing +ivy-do-action! error when ivy module is disabled 2018-05-25 11:54:52 +02:00
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
4c73ac0111 config/default: Fix evil-collection anti-hacks #604 2018-05-24 22:34:37 +02:00
592e16d76d Conform debug commands to naming convention 2018-05-24 16:40:37 +02:00
4e18722d49 config/default: update doom help/debug keybinds 2018-05-21 18:34:33 +02:00
af97dcdfe8 config/default: add SPC-g-o/SPC-g-I for browsing remote/issues 2018-05-21 18:34:33 +02:00
1b8dce260b config/default: restore find-in-snippets command #597
And conditionally bind snippets keybinds
2018-05-21 18:34:33 +02:00
72b9e80cde config/default: add :rev[erse] command (reverse lines) 2018-05-18 01:46:04 +02:00
170b7f97e7 config/default: rebind I/J indent textobjects to k/j 2018-05-18 01:44:17 +02:00
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