Last active
December 18, 2020 04:44
-
-
Save Arahnoid/5495e3b23752d42b7b53efdaf1e388ae to your computer and use it in GitHub Desktop.
A simple function and key binding for Doom Emacs allows to toggle on/of emphasis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-toggle-emphasis () | |
"Toggle emphasis in buffer" | |
(interactive) | |
(if (eq org-hide-emphasis-markers t) | |
(progn | |
(setq org-hide-emphasis-markers nil) | |
(font-lock-fontify-buffer) | |
(message "Emphasis toggled OFF")) | |
(progn | |
(setq org-hide-emphasis-markers t) | |
(font-lock-fontify-buffer) | |
(message "Emphasis toggled ON")))) | |
(map! :leader :desc "Emphasis" :m "t e" #'ig/toggle-emphasis) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment