diff options
author | Case Duckworth | 2021-09-02 23:50:50 -0500 |
---|---|---|
committer | Case Duckworth | 2021-09-02 23:50:50 -0500 |
commit | b9190966d194bd31e67a97e8b085afbb49be4945 (patch) | |
tree | 03e8b96f1275217a971bd0f87297514a52a0ff51 | |
parent | Add imgur.com to those websites requiring a secondary browser (diff) | |
download | emacs-b9190966d194bd31e67a97e8b085afbb49be4945.tar.gz emacs-b9190966d194bd31e67a97e8b085afbb49be4945.zip |
Add powerthesaurus and lookup-map
`lookup-map' might come in very handy later on...
-rw-r--r-- | init.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el index a3b3efa..6d08f29 100644 --- a/init.el +++ b/init.el | |||
@@ -814,6 +814,10 @@ like a dumbass." | |||
814 | (defvar case-map (make-sparse-keymap) | 814 | (defvar case-map (make-sparse-keymap) |
815 | "A keymap for setting case in various ways.") | 815 | "A keymap for setting case in various ways.") |
816 | (global-set-key (kbd "C-c c") case-map) | 816 | (global-set-key (kbd "C-c c") case-map) |
817 | |||
818 | (defvar lookup-map (make-sparse-keymap) | ||
819 | "A keymap for looking up things.") | ||
820 | (global-set-key (kbd "C-c l") lookup-map) | ||
817 | 821 | ||
818 | (:global "M-=" count-words | 822 | (:global "M-=" count-words |
819 | "C-w" kill-region-or-backward-word | 823 | "C-w" kill-region-or-backward-word |
@@ -1660,6 +1664,9 @@ browser defined in `browse-url-secondary-browser-function'." | |||
1660 | (persistent-scratch-mode +1)))) | 1664 | (persistent-scratch-mode +1)))) |
1661 | (buffer-list))) | 1665 | (buffer-list))) |
1662 | 1666 | ||
1667 | (setup (:straight powerthesaurus) | ||
1668 | (:global (kbd "C-c l t") #'powerthesaurus-lookup-word-dwim)) | ||
1669 | |||
1663 | (setup (:straight restart-emacs) | 1670 | (setup (:straight restart-emacs) |
1664 | (defun emacs-upgrade (&optional update-packages) | 1671 | (defun emacs-upgrade (&optional update-packages) |
1665 | "Pull config, upgrade packages, restart Emacs." | 1672 | "Pull config, upgrade packages, restart Emacs." |