Created
March 27, 2020 19:48
-
-
Save michaelmrose/f8046c224694d87fd0c39ccd1ad9ec5c to your computer and use it in GitHub Desktop.
set-fucking-insert
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 michael-set-fucking-insert () | |
(interactive) | |
(let ((file "~/.emacs.d/michael/fuckinginsert.el") | |
(sexp (concat "(evil-set-initial-state '" | |
(prin1-to-string major-mode) | |
" 'insert)\n"))) | |
(eval (read-from-whole-string sexp)) | |
(append-to-file sexp nil file) | |
(save-buffer file) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment