diff options
author | Ashley Duckworth | 2021-01-22 14:56:58 -0600 |
---|---|---|
committer | Ashley Duckworth | 2021-01-22 14:57:35 -0600 |
commit | 83e8cbeb5d54c871b8978a0ba4193cab8c14a617 (patch) | |
tree | 6386315f2c3ebfda27e76451d7be726a83b84118 | |
parent | Add tag (diff) | |
download | emacs-83e8cbeb5d54c871b8978a0ba4193cab8c14a617.tar.gz emacs-83e8cbeb5d54c871b8978a0ba4193cab8c14a617.zip |
Add hippie-expand and reorganize
-rw-r--r-- | config.org | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/config.org b/config.org index 3218c91..06b246c 100644 --- a/config.org +++ b/config.org | |||
@@ -494,9 +494,20 @@ to /hide/ those contents. | |||
494 | read-file-name-completion-ignore-case t) | 494 | read-file-name-completion-ignore-case t) |
495 | #+end_src | 495 | #+end_src |
496 | 496 | ||
497 | * Bindings | 497 | ** Completion |
498 | 498 | ||
499 | ** Acdw Mode | 499 | *** Hippie Expand |
500 | |||
501 | Before I install any completion framework, I want a good default for | ||
502 | completing. =hippie-expand= fills that niche. | ||
503 | |||
504 | #+begin_src emacs-lisp :noweb-ref bindings | ||
505 | (define-key acdw/map (kbd "M-/") #'hippie-expand) | ||
506 | #+end_src | ||
507 | |||
508 | ** Bindings | ||
509 | |||
510 | *** Acdw Mode | ||
500 | 511 | ||
501 | I've decided to set up a custom minor mode for my keybindings, as | 512 | I've decided to set up a custom minor mode for my keybindings, as |
502 | suggested in [[https://github.com/larstvei/dot-emacs#key-bindings][Lars Tvei]]'s config, so that I can override all other | 513 | suggested in [[https://github.com/larstvei/dot-emacs#key-bindings][Lars Tvei]]'s config, so that I can override all other |
@@ -516,7 +527,7 @@ on as I please. | |||
516 | (define-globalized-minor-mode acdw/global-mode acdw/mode acdw/mode) | 527 | (define-globalized-minor-mode acdw/global-mode acdw/mode acdw/mode) |
517 | #+end_src | 528 | #+end_src |
518 | 529 | ||
519 | *** Turn off acdw/mode in the minibuffer | 530 | **** Turn off acdw/mode in the minibuffer |
520 | 531 | ||
521 | #+begin_src emacs-lisp :noweb-ref acdw-mode | 532 | #+begin_src emacs-lisp :noweb-ref acdw-mode |
522 | (defun acdw/mode--disable () | 533 | (defun acdw/mode--disable () |
@@ -526,7 +537,7 @@ on as I please. | |||
526 | (add-hook 'minibuffer-setup-hook #'acdw/mode--disable) | 537 | (add-hook 'minibuffer-setup-hook #'acdw/mode--disable) |
527 | #+end_src | 538 | #+end_src |
528 | 539 | ||
529 | *** Custom leader | 540 | **** Custom leader |
530 | 541 | ||
531 | Since =C-z= is generally pretty useless in Emacs (minimize the window? | 542 | Since =C-z= is generally pretty useless in Emacs (minimize the window? |
532 | really?), I rebind it to be a sort of personal leader key. I | 543 | really?), I rebind it to be a sort of personal leader key. I |
@@ -545,7 +556,7 @@ generally use it as a leader for entering applications. | |||
545 | (run-hooks 'acdw/leader-defined-hook) | 556 | (run-hooks 'acdw/leader-defined-hook) |
546 | #+end_src | 557 | #+end_src |
547 | 558 | ||
548 | ** Show keybindings with =which-key= | 559 | *** Show keybindings with =which-key= :package: |
549 | 560 | ||
550 | #+begin_src emacs-lisp :noweb-ref packages | 561 | #+begin_src emacs-lisp :noweb-ref packages |
551 | (straight-use-package 'which-key) | 562 | (straight-use-package 'which-key) |