Start using Hippie Expand over Dabbrev
This commit is contained in:
parent
9dbd13f4d2
commit
79325d3cc5
24
config.org
24
config.org
|
@ -1461,6 +1461,30 @@ navigation/swapping commands.
|
|||
"C-<right>" #'+evil/window-move-right)
|
||||
#+end_src
|
||||
|
||||
*** Hippie expand
|
||||
|
||||
Completing text based on other availible content is a great idea, and so ~dabbrev~
|
||||
(dynamic abbreviations) is throughly useful. There's another similar tool that
|
||||
Emacs comes with though, called [[https://www.masteringemacs.org/article/text-expansion-hippie-expand][hippie expand]], which is just a bit nicer yet,
|
||||
and can be used as a swap-in upgrade to ~dabbrev~.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(global-set-key [remap dabbrev-expand] #'hippie-expand)
|
||||
#+end_src
|
||||
|
||||
Hippie expand works by cycling through a series of expansion-generating
|
||||
functions, listed in the variable ~hippie-expand-try-functions-list~.
|
||||
|
||||
By default, it completes (in order):
|
||||
+ File names
|
||||
+ Known abbreviations
|
||||
+ Lists (i.e. bracketed regions)
|
||||
+ Previous lines
|
||||
+ Dabbrev (this buffer)
|
||||
+ Dabbrev (all buffers)
|
||||
+ Dabbrev (kill ring)
|
||||
+ Known elisp symbols
|
||||
|
||||
*** Buffer defaults
|
||||
|
||||
I'd much rather have my new buffers in ~org-mode~ than ~fundamental-mode~, hence
|
||||
|
|
Loading…
Reference in New Issue