Compare commits

...

3 Commits

Author SHA1 Message Date
Nathan McCarty 6572405db8
Calc configuration 2023-03-16 18:32:27 -04:00
Nathan McCarty 3d8a188872
Add some bindings 2023-03-16 18:23:34 -04:00
Nathan McCarty 8e00da505b
Disable indent guides
These are a little busted right now, will need to troubleshoot later
2023-03-16 17:43:44 -04:00
2 changed files with 31 additions and 4 deletions

View File

@ -108,6 +108,12 @@ The provided default ~config.el~
(after! gcmh (after! gcmh
(setq gcmh-high-cons-threshold (* 64 1024 1024))) (setq gcmh-high-cons-threshold (* 64 1024 1024)))
#+end_src #+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 * Appearance, UX, and Fixes
** Mixed Pitch Mode ** Mixed Pitch Mode
Use mixed pitch mode in prose writing modes, to make the writing experience a bit more pleasant. 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. 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 #+begin_src emacs-lisp
(use-package! separedit (use-package! separedit
;; :bind
;; (:map prog-mode-map
;; ("C-c '" . separedit))
:config :config
(setq separedit-default-mode 'gfm-mode (setq separedit-default-mode 'gfm-mode
separedit-continue-fill-column t)) separedit-continue-fill-column t))
#+end_src #+end_src
Setup the binding
#+begin_src emacs-lisp
(map! :leader
:desc "Separedit"
"z s" #'separedit)
#+end_src
*** Rainbow delimiters *** Rainbow delimiters
Makes pairs of delimiters into pretty colors. Hook this into prog-mode Makes pairs of delimiters into pretty colors. Hook this into prog-mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -1035,3 +1045,20 @@ Now setup notifications
#'(lambda() (edit-server-start)))) #'(lambda() (edit-server-start))))
:config (setq edit-server-new-frame nil)) :config (setq edit-server-new-frame nil))
#+end_src #+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
Group digits by default
#+begin_src emacs-lisp
(setq calc-group-digits t)
#+end_src

View File

@ -23,7 +23,7 @@
doom-dashboard ; a nifty splash screen for Emacs doom-dashboard ; a nifty splash screen for Emacs
(emoji +unicode) ; 🙂 (emoji +unicode) ; 🙂
hl-todo ; highlight todo-words hl-todo ; highlight todo-words
indent-guides ; highlighted indent columns ;; indent-guides ; highlighted indent columns
nav-flash ; blink cursor line after big motions nav-flash ; blink cursor line after big motions
(popup +defaults) ; tame sudden yet inevitable temporary windows (popup +defaults) ; tame sudden yet inevitable temporary windows
(treemacs +lsp) ; a project drawer, like neotree but cooler (treemacs +lsp) ; a project drawer, like neotree but cooler