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

@ -50,13 +50,12 @@
#+END_SRC #+END_SRC
** 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
(when (memq window-system '(mac ns x)) (when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))) (exec-path-from-shell-initialize)))
#+END_SRC #+END_SRC
* Theming * Theming
@ -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)