Skip to content

Instantly share code, notes, and snippets.

@michaelmrose
Created March 27, 2020 19:48
Show Gist options
  • Save michaelmrose/f8046c224694d87fd0c39ccd1ad9ec5c to your computer and use it in GitHub Desktop.
Save michaelmrose/f8046c224694d87fd0c39ccd1ad9ec5c to your computer and use it in GitHub Desktop.
set-fucking-insert
(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