Commit graph

160 commits

Author SHA1 Message Date
Henrik Lissner
7f7dfb0959
feature/evil: more vim-esque save messages
Now when saving, you get a message like:

  "modules/feature/evil/config.el" 435L, 16678C written

Instead of

  Wrote /home/hlissner/work/conf/doom-emacs/modules/feature/evil/config.el

PEDANTRY INTENSIFIES
2018-01-11 13:23:07 -05:00
Yiming Chen
471c68fc8a feature/evil: move evil-numbers bindings to private/default/+bindings.el 2018-01-11 11:50:55 +08:00
Yiming Chen
c24889d75e feature/evil: add mapping for evil-numbers 2018-01-11 09:17:49 +08:00
Henrik Lissner
0e0966a4ce
feature/evil: evil-respect-visual-line-mode = t
Remaps line motions in visual-line-mode.
2018-01-09 03:52:11 -05:00
Henrik Lissner
5cd29479f4
Refactor feature/evil hacks & advice; fix tests 2018-01-07 00:15:57 -05:00
Henrik Lissner
b17cafc4f7
feature/evil: recenter after splitting 2018-01-06 03:02:12 -05:00
Henrik Lissner
60cded00e6
Decouple doom/escape & evil 2018-01-06 03:00:45 -05:00
Henrik Lissner
3cbddbfd88
Generalize +evil-esc-hook into doom-escape-hook
This lets vanilla Emacs users in on having a universal "escape" key.
2018-01-06 02:38:39 -05:00
Henrik Lissner
91357a3e5d
💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00
Henrik Lissner
eef6ed3d11
Minor, general refactor & comment updates 2018-01-01 13:21:52 -05:00
Henrik Lissner
76a4ae459d
Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
Henrik Lissner
9d81bc5a8b
Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
Henrik Lissner
a24e22cf57
cl-pushnew => push
Now that doom//byte-compile and doom//reload-autoloads always run in an
isolated Emacs session, there is little need to ensure idempotency of
the current session's state.
2017-11-10 00:19:05 +01:00
Henrik Lissner
cd7ab060e0
General refactor & docstring updates 2017-10-05 17:02:59 +02:00
Henrik Lissner
5a5d2f2d94
Add multiple-cursors compatibility integration
mc doesn't work well with evil, but some plugins force us to use it
anyway (like js2r-refactor). This config reduces (but doesn't eliminate)
that friction.
2017-10-03 02:58:09 +02:00
Henrik Lissner
a4ddb1bc9b
General minor refactor + cleanup 2017-09-28 18:19:15 +02:00
Henrik Lissner
6cb5efc929
core-lib: rename helper fns; move doom-resolve-vim-path
+ doom--resolve-paths => doom--resolve-path-forms
+ doom--resolve-hooks => doom--resolve-hook-forms
+ +evil*ex-replace-special-filenames => doom-resolve-vim-path
2017-09-27 01:23:54 +02:00
Henrik Lissner
91783e0695
General refactor & cleanup 2017-09-15 14:37:20 +02:00
Henrik Lissner
5f26399ff2
Fix evil-mc not whitelisting custom commands 2017-09-12 23:55:34 +02:00
Henrik Lissner
6439d7abee
Add elfeed-(show|search)-mode to evil-snipe-disabled-modes 2017-09-02 16:14:27 +02:00
Henrik Lissner
6a5bd216e5
Appease byte-compiler senpai 2017-07-14 18:19:08 +02:00
Henrik Lissner
2adbd54b59
Load evil-snipe later in startup 2017-07-02 16:53:28 +02:00
Henrik Lissner
992e636b31
feature/evil: improve idempotency 2017-07-02 16:53:04 +02:00
Henrik Lissner
532db96645
evil: don't force normal mode from emacs mode 2017-07-02 16:52:01 +02:00
Henrik Lissner
478eafa59b
Add evil-mc-has-cursors-p autoload to evil-mc 2017-07-01 11:24:45 +02:00
Henrik Lissner
b447148a4a
Enable evil-snipe-mode too 2017-06-30 23:47:06 +02:00
Henrik Lissner
28810eee3a
feature/evil: refactor code-folding keybinds 2017-06-30 23:46:53 +02:00
Henrik Lissner
8f00b3d07a
Minor general refactor 2017-06-20 16:32:50 +02:00
Henrik Lissner
928812da8a
Make def-setting! behave more like defmacro
set! used to aggressively evaluate its arguments (at expansion-time),
even if placed inside an after! block. This causes unavoidable errors if
those arguments use functions/variables that don't exist yet.

Fixes #112
2017-06-19 00:32:44 +02:00
Henrik Lissner
816df321a5
General refactor & cleanup 2017-06-14 21:15:19 +02:00
Henrik Lissner
4984a548d1
Refactor DOOM init & add new init hooks
+ Add doom-init-hook and doom-post-init-hook to simplify Emacs init
  hooks into less ambiguous ones.
+ Attach former after-init-hook and emacs-startup-hook hooks to new doom
  init hooks.
+ Vastly improves daemon and tty support: preventing incorrect colors
  from bleeding across face class barriers, and into GUI Emacs and vice
  versa, when spawned with emacsclient.
+ Fix persp-mode breaking Emacs daemon, and ensuring that initialization
  is done properly in terminal Emacs (and emacsclient frames).
2017-06-12 00:37:14 +02:00
Henrik Lissner
d214d94207
Fix goto-last-change (by autoloading its commands)
Its default binds (bound by evil-maps) are g; and g,
2017-06-11 00:59:42 +02:00
Henrik Lissner
2097498f3e
General docstring+idempotency refactor 2017-06-11 00:59:02 +02:00
Henrik Lissner
99ef794f92
evil-escape: disable in minibuffer and motion state 2017-06-09 01:09:20 +02:00
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
Henrik Lissner
a20aeaf76b
Refactor code-fold system (defer load + advise) 2017-06-07 20:43:58 +02:00
Henrik Lissner
3b4517e7bd
evil-escape: exclude emacs state 2017-06-07 17:13:01 +02:00
Henrik Lissner
a5325f6a2a Move evil-mc personal config to private module 2017-06-05 12:35:51 +02:00
Henrik Lissner
30402495fe General refactor + cleanup 2017-06-05 12:35:51 +02:00
Henrik Lissner
1fd482fa51 Extract neotree from feature/evil => tools/neotree 2017-06-05 00:51:56 +02:00
Henrik Lissner
dd11477132 Fix #87: evil-matchit in visual mode 2017-06-04 02:21:52 +02:00
Henrik Lissner
e02e99050f Bring back evil-multiedit
evil-mc is great, but sometimes iedit is simply the better tool.
2017-06-03 12:05:43 +02:00
Henrik Lissner
1cc199497d Silence evil-matchit errors 2017-05-28 15:39:36 +02:00
Henrik Lissner
47afa2f51c Integrate new code folding more aggressively
This is necessary for +evil/fold-{open,close}-all to recieve its
interactive <c> argument.
2017-05-28 15:39:36 +02:00
Henrik Lissner
86cca42723 private/hlissner: revise bindings (again)
+ Remove defunct + refactor
+ Move evil-easymotion bindings to private/hlissner
+ Remove backtab 'fix' in bindings (doesn't work)
+ Clear leader/localleader keys first
+ Put key "fixers" in input-decode-map
2017-05-28 15:38:50 +02:00
Henrik Lissner
76493bd8fc Refactor <//> & <//g> ex-arg types & :global 2017-05-28 02:48:20 +02:00
Henrik Lissner
fbe782df22 Heavily redesign keybinding design
+ SPC and SPC m as leader/localleader (spacemacs-ey)
+ Move all custom keybindings to private +bindings.el file
+ Redesign+rearrange keybindings
2017-05-28 02:48:20 +02:00
Henrik Lissner
4ea176d04d Register doom/newline-and-indent with evil-mc 2017-05-28 02:48:20 +02:00
Henrik Lissner
0d985281eb Replace evil-multiedit with evil-mc 2017-05-26 23:08:53 +02:00
Henrik Lissner
85751c519b Refactor +evil-esc-hook 2017-05-25 12:22:05 +02:00