Add lisp formatter

This commit is contained in:
Lizzy Hunt 2023-03-16 12:38:15 -06:00
parent c97326d01e
commit 7fbb43ee8c
No known key found for this signature in database
GPG Key ID: 8AC6A4B840C0EC49

View File

@ -51,7 +51,6 @@
** System path (macos) ** System path (macos)
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;; Use system path on macos - needed for node ;; Use system path on macos - needed for node
(use-package exec-path-from-shell (use-package exec-path-from-shell
:ensure t :ensure t
:init :init
@ -153,6 +152,13 @@
(setq org-startup-indented t) (setq org-startup-indented t)
#+END_SRC #+END_SRC
** Babel ** Babel
*** Elixir
#+BEGIN_SRC emacs-lisp
(use-package ob-elixir
:ensure t)
#+END_SRC
*** Load Languages
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
@ -161,12 +167,6 @@
(emacs-lisp . t) (emacs-lisp . t)
(python . t))) (python . t)))
#+END_SRC #+END_SRC
*** Elixir
#+BEGIN_SRC emacs-lisp
(use-package ob-elixir
:ensure t)
#+END_SRC
** org-bullets ** org-bullets
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-bullets (use-package org-bullets
@ -237,6 +237,18 @@
#+END_SRC #+END_SRC
** Languages ** Languages
*** Common Lisp *** Common Lisp
**** Formatter! semantic-refactor
#+BEGIN_SRC emacs-lisp
(use-package srefactor
:ensure t
:hook ((before-save .
(lambda ()
(when (eq major-mode 'lisp-mode)
(srefactor-lisp-format-buffer))))))
(require 'srefactor)
(require 'srefactor-lisp)
#+END_SRC
**** Rainbow Parentheses **** Rainbow Parentheses
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package rainbow-delimiters :ensure t) (use-package rainbow-delimiters :ensure t)