Compare commits

...

2 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet dcb27e32d2
[Emacs] Don’t byte-compile user configuration in dotspacemacs
Byte-compiling my configuration actually doesn’t make configuration
loading time any shorter and increases Emacs startup time due to the
time spent byte-compiling it. This is now removed.
2021-01-05 16:44:09 +01:00
Lucien Cartier-Tilet e8121b452f
[Emacs] Add shortcut to spawn new Eshell buffer 2021-01-05 16:43:45 +01:00
2 changed files with 2 additions and 5 deletions

View File

@ -36,10 +36,6 @@ It should only modify the values of Spacemacs settings."
(let ((org-confirm-babel-evaluate nil))
(org-babel-tangle-file phundrak//dotspacemacs-src))
(message "Exporting new Emacs configuration from spacemacs.org through org-babel...done"))
(when (phundrak/update-config-files-p t)
(with-temp-buffer
(byte-recompile-directory phundrak//dotspacemacs-src-dir
0 t)))
(load phundrak//dotspacemacs-si))
(defun dotspacemacs/layers ()

View File

@ -3302,13 +3302,14 @@ As this is a new category, lets declare its prefix:
(spacemacs/declare-prefix "oa" "applications")
#+END_SRC
Now, lets also declare the keybindings in this category. ~oac~ will invoke Emacs calculator, while ~oac~ invokes the calendar, ~oae~ invokes the Eww web browser, ~oaw~ invokes ~woman~ (actually ~helm-man-woman~), and ~oaW~ invokes the weather forecast. Lastly, the apostrophe in ~oa'~ will invoke Eshell directly, without any popup window as with ~,'~.
Now, lets also declare the keybindings in this category. ~oac~ will invoke Emacs calculator, while ~oac~ invokes the calendar, ~oae~ invokes the Eww web browser, ~oaw~ invokes ~woman~ (actually ~helm-man-woman~), and ~oaW~ invokes the weather forecast. Lastly, the apostrophe in ~oa'~ will invoke Eshell directly, without any popup window as with ~,'~ while ~oan~ will open a new eshell buffer if another one already exists.
#+BEGIN_SRC emacs-lisp
(spacemacs/set-leader-keys
"oa'" 'eshell
"oac" 'calc
"oaC" 'calendar
"oae" 'eww
"oan" 'eshell-new
"oaw" 'helm-man-woman
"oaW" 'wttrin)
#+END_SRC