My attempt to optimize my emacs load time <1 second
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
518 B

;;; custom-binds --- A set of custom key bindings
;;; Commentary:
;;; Code:
(defvar my-term-shell "/bin/bash" "My preferred choice of shell.")
(defadvice ansi-term (before force-bash)
"Open an interactive ansi-terminal that defaults to bash."
(interactive (list my-term-shell)))
(ad-activate 'ansi-term)
(bind-key "<M-return>" 'eshell)
(bind-key "<M-S-return>" 'ansi-term)
(bind-key "C-c r" '(lambda () (interactive) (load-file user-init-file)))
(provide 'custom-binds)
;;; custom-binds.el ends here