How to Add Shortcuts to Doom Emacs

  • I used this article to find out how to add shortcuts

In your config.el file add a map declaration using the :leader attribute and whatever prefix key you would like to use. Then after you have added the necessary prefix keys add a :desc "Description of the command" "key" #'elisp-command-to-execute for each shortcut you wish to add.

For example this is how I added org-roam-dailies shortcuts to Doom Emacs.

(map! :leader
      (:prefix-map ("j" . "journal")
       :desc "Capture new journal entry" "n" #'org-roam-dailies-capture-today
       :desc "Go to today's journal entry" "t" #'org-roam-dailies-find-today
       :desc "Go to yesterday's journal entry" "y" #'org-roam-dailies-find-yesterday
       :desc "Go to tomorrow's journal entry" "o" #'org-roam-dailies-find-tomorrow
       :desc "Find date" "f" #'org-roam-dailies-find-date))

Related Notes

  • Emacs

Contact

Content is copyrighted 2019-2024 © D.S. Chapman. This site was built using GatsbyJS. Code for this website is open source and available on Github