tweaks to smartparens and clojure and lisp stuff
This commit is contained in:
parent
8eeb93fa14
commit
686d14a6c6
36
README.org
36
README.org
|
@ -202,6 +202,9 @@ Let's also set org-mode as the scratch buffer mode
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Let's bootstrap straight.el
|
** Let's bootstrap straight.el
|
||||||
|
:PROPERTIES:
|
||||||
|
:ID: 20230524T150405.435338
|
||||||
|
:END:
|
||||||
Before bootstrapping straight, I've begun to move more and more of my configurations into Nix. To ensure that the packages used by Nix are loaded and straight defers to that, let's make sure they are found in the load path first.
|
Before bootstrapping straight, I've begun to move more and more of my configurations into Nix. To ensure that the packages used by Nix are loaded and straight defers to that, let's make sure they are found in the load path first.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(dolist (path load-path)
|
(dolist (path load-path)
|
||||||
|
@ -296,7 +299,23 @@ Let's make parens and other delimiters easier to tell apart by making nested one
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package smartparens
|
(use-package smartparens
|
||||||
:config
|
:config
|
||||||
(smartparens-global-mode +1))
|
(smartparens-global-mode +1)
|
||||||
|
:general
|
||||||
|
('normal lisp-mode-map
|
||||||
|
"gl" 'sp-forward-slurp-sexp
|
||||||
|
"gh" 'sp-backward-slurp-sexp
|
||||||
|
"C-l" 'sp-forward-sexp
|
||||||
|
"C-h" 'sp-backward-sexp)
|
||||||
|
('normal cider-repl-mode-map
|
||||||
|
"gl" 'sp-forward-slurp-sexp
|
||||||
|
"gh" 'sp-backward-slurp-sexp
|
||||||
|
"C-l" 'sp-forward-sexp
|
||||||
|
"C-h" 'sp-backward-sexp)
|
||||||
|
('normal clojurescript-mode-map
|
||||||
|
"gl" 'sp-forward-slurp-sexp
|
||||||
|
"gh" 'sp-backward-slurp-sexp
|
||||||
|
"C-l" 'sp-forward-sexp
|
||||||
|
"C-h" 'sp-backward-sexp))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -2835,6 +2854,21 @@ Friar is a fennel repl in the awesome repl. It allows you to interact with Aweso
|
||||||
:files (:defaults "*.lua" "*.fnl"))
|
:files (:defaults "*.lua" "*.fnl"))
|
||||||
:after fennel-mode)
|
:after fennel-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
*** Clojure
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
;; First install the package:
|
||||||
|
(use-package flycheck-clj-kondo
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
|
;; then install the checker as soon as `clojure-mode' is loaded
|
||||||
|
(use-package clojure-mode
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(require 'flycheck-clj-kondo))
|
||||||
|
|
||||||
|
(use-package cider
|
||||||
|
:after clojure-mode)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Yaml
|
*** Yaml
|
||||||
|
|
||||||
|
|
31
init.el
31
init.el
|
@ -131,7 +131,23 @@
|
||||||
|
|
||||||
(use-package smartparens
|
(use-package smartparens
|
||||||
:config
|
:config
|
||||||
(smartparens-global-mode +1))
|
(smartparens-global-mode +1)
|
||||||
|
:general
|
||||||
|
('normal lisp-mode-map
|
||||||
|
"gl" 'sp-forward-slurp-sexp
|
||||||
|
"gh" 'sp-backward-slurp-sexp
|
||||||
|
"C-l" 'sp-forward-sexp
|
||||||
|
"C-h" 'sp-backward-sexp)
|
||||||
|
('normal cider-repl-mode-map
|
||||||
|
"gl" 'sp-forward-slurp-sexp
|
||||||
|
"gh" 'sp-backward-slurp-sexp
|
||||||
|
"C-l" 'sp-forward-sexp
|
||||||
|
"C-h" 'sp-backward-sexp)
|
||||||
|
('normal clojurescript-mode-map
|
||||||
|
"gl" 'sp-forward-slurp-sexp
|
||||||
|
"gh" 'sp-backward-slurp-sexp
|
||||||
|
"C-l" 'sp-forward-sexp
|
||||||
|
"C-h" 'sp-backward-sexp))
|
||||||
|
|
||||||
(use-package aggressive-indent
|
(use-package aggressive-indent
|
||||||
:config
|
:config
|
||||||
|
@ -2087,6 +2103,19 @@ targets."
|
||||||
(use-package fennel-mode
|
(use-package fennel-mode
|
||||||
:mode ("\\.fnl\\'" . fennel-mode))
|
:mode ("\\.fnl\\'" . fennel-mode))
|
||||||
|
|
||||||
|
;; First install the package:
|
||||||
|
(use-package flycheck-clj-kondo
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
|
;; then install the checker as soon as `clojure-mode' is loaded
|
||||||
|
(use-package clojure-mode
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(require 'flycheck-clj-kondo))
|
||||||
|
|
||||||
|
(use-package cider
|
||||||
|
:after clojure-mode)
|
||||||
|
|
||||||
(use-package yaml-mode
|
(use-package yaml-mode
|
||||||
:mode ("\\.yml\\'" . yaml-mode))
|
:mode ("\\.yml\\'" . yaml-mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue