Last active
September 10, 2016 20:14
-
-
Save offby1/5b6fa97694cdaba212393b1d55b9848a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 is-enabled-minor-mode (symbol) | |
(and (string-match (rx "-mode" eos) (symbol-name symbol)) | |
(symbol-function symbol) | |
(condition-case nil | |
(symbol-value symbol) | |
(error nil)) | |
)) | |
(let ((minor-modes '())) | |
(mapatoms #'(lambda (sym) | |
(when (is-enabled-minor-mode sym) | |
(setq minor-modes (cons sym minor-modes))))) | |
minor-modes) | |
(magit-auto-revert-mode global-auto-revert-mode font-lock-mode gpm-mouse-mode jit-lock-mode blink-cursor-mode projectile-mode line-number-mode global-eldoc-mode mouse-wheel-mode file-name-shadow-mode auto-compression-mode projectile-global-mode global-git-commit-mode pyvenv-mode shell-dirtrack-mode async-bytecomp-package-mode diff-auto-refine-mode eldoc-mode auto-composition-mode recentf-mode tooltip-mode savehist-mode transient-mark-mode auto-encryption-mode ido-mode override-global-mode global-font-lock-mode elisp-slime-nav-mode) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment