Reduce Emacs startup time - init.el - info

emacs-init-time to open a session showing (only) the *Messages* buffer -
before - 39.1s
after  - 37.9s
This commit is contained in:
Kashish Sharma 2016-06-13 21:24:55 +05:30
parent 91935cd5b3
commit 63e95db46b
1 changed files with 7 additions and 6 deletions

13
init.el
View File

@ -99,7 +99,12 @@
(after magit-previous-section-recenter activate) (recenter 3))
(ad-activate 'magit-goto-previous-section)
(require 'info)
(with-eval-after-load 'info
(cp-set-keys
:keymap Info-mode-map
:bindings
`((,(kbd "b") Info-history-back)
(,(kbd "f") Info-history-forward))))
(defun cp-info-emacs ()
(interactive) (info "(emacs)"))
(defun cp-info-elisp ()
@ -145,11 +150,7 @@
(,(kbd "<f5> t") cp-insert-timestamp)
(,(kbd "<f1> i s") (lambda () (interactive) (info "(stumpwm)")))))
(cp-set-keys
:keymap Info-mode-map
:bindings
`((,(kbd "b") Info-history-back)
(,(kbd "f") Info-history-forward)))
(load "cp-mouse")