Add some bindings

This commit is contained in:
Nathan McCarty 2023-03-16 17:51:37 -04:00
parent 8e00da505b
commit 3d8a188872
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 25 additions and 3 deletions

View File

@ -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