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
527 B

5 years ago
5 years ago
  1. ;;; 03-custom-binds --- A set of custom key bindings
  2. ;;; Commentary:
  3. ;;; Code:
  4. (defvar my-term-shell "/bin/bash" "My preferred choice of shell.")
  5. (defadvice ansi-term (before force-bash)
  6. "Open an interactive ansi-terminal that defaults to bash."
  7. (interactive (list my-term-shell)))
  8. (ad-activate 'ansi-term)
  9. (bind-key "<M-return>" 'eshell)
  10. (bind-key "<M-S-return>" 'ansi-term)
  11. (bind-key "C-c r" '(lambda () (interactive) (load-file user-init-file)))
  12. (provide '03-custom-binds)
  13. ;;; 03-custom-binds.el ends here