Created
August 13, 2016 14:27
-
-
Save FernandoBasso/7340bae0d21a74af42a27a1fcab26506 to your computer and use it in GitHub Desktop.
oggles showing of org mode markup like ~, /, * etc.
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-org-emph () | |
"Toggles showing of org mode markup like ~, /, * etc." | |
(interactive) | |
(when (eq major-mode 'org-mode) | |
(if (and org-hide-emphasis-markers) | |
(progn | |
(print "Hiding org-mode emphasis markers") | |
(setq org-hide-emphasis-markers nil) | |
(org-mode)) | |
(progn | |
(print "Showing org-mode emphasis markers") | |
(setq org-hide-emphasis-markers t))) | |
(org-mode))) | |
(global-set-key (kbd "C-c t") 'my/toggle-org-emph) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment