diff --git a/config.org b/config.org index 00a81a9..19d6168 100644 --- a/config.org +++ b/config.org @@ -108,6 +108,12 @@ The provided default ~config.el~ (after! gcmh (setq gcmh-high-cons-threshold (* 64 1024 1024))) #+end_src +** Setup my user prefix +Use ~SPC z~ as my user prefix for custom commands and what not +#+begin_src emacs-lisp +(map! :leader + (:prefix ("z" . "custom"))) +#+end_src * Appearance, UX, and Fixes ** Mixed Pitch Mode Use mixed pitch mode in prose writing modes, to make the writing experience a bit more pleasant. @@ -774,13 +780,17 @@ Edit indirect for comments Set the default mode to github flavored markdown, turn on smart use of fill column, and bind to the normal edit-indirect keybinding. #+begin_src emacs-lisp (use-package! separedit - ;; :bind - ;; (:map prog-mode-map - ;; ("C-c '" . separedit)) :config (setq separedit-default-mode 'gfm-mode separedit-continue-fill-column t)) #+end_src + +Setup the binding +#+begin_src emacs-lisp +(map! :leader + :desc "Separedit" + "z s" #'separedit) +#+end_src *** Rainbow delimiters Makes pairs of delimiters into pretty colors. Hook this into prog-mode #+begin_src emacs-lisp @@ -1035,3 +1045,15 @@ Now setup notifications #'(lambda() (edit-server-start)))) :config (setq edit-server-new-frame nil)) #+end_src + +** Emacs calculator +Bind calc to ~SPC o c~ +#+begin_src emacs-lisp +(require 'calc) +(map! :leader + (:prefix ("z c" . "calc") + "c" #'calc + "q" #'quick-calc + "d" #'calc-dispatch + "g" #'calc-grab-region)) +#+end_src