Skip to content

Instantly share code, notes, and snippets.

@Aneeqasif
Aneeqasif / orgui.org
Last active March 28, 2024 19:06
org-mode Ui changes
(defun an/toggle-minor-mode (mode)
  (if (symbol-value mode) (funcall (symbol-function mode) 0) (funcall (symbol-function mode) 1)))


(defun an/writeroom-mode-specific ()
  (an/toggle-minor-mode 'display-line-numbers-mode)
  (an/toggle-minor-mode 'hl-line-mode))
                                        ; (add-hook 'writeroom-mode-hook #'an/writeroom-mode-specific)