Parens stuff
This commit is contained in:
parent
3598c3850e
commit
ced12164ed
41
init.el
41
init.el
|
@ -10,7 +10,9 @@
|
||||||
|
|
||||||
;;; Making the interface not terrible ;;;
|
;;; Making the interface not terrible ;;;
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
(scroll-bar-mode -1)
|
||||||
|
(fringe-mode 0)
|
||||||
|
|
||||||
;;; Sane defaults ;;;
|
;;; Sane defaults ;;;
|
||||||
(when (version<= "26.0.50" emacs-version)
|
(when (version<= "26.0.50" emacs-version)
|
||||||
|
@ -149,7 +151,6 @@
|
||||||
pretty-parens ; different paren styles for different modes.
|
pretty-parens ; different paren styles for different modes.
|
||||||
evil ; If you use Evil.
|
evil ; If you use Evil.
|
||||||
;; lispy ; If you use Lispy. With this extension, you should install Lispy and do not enable lispy-mode directly.
|
;; lispy ; If you use Lispy. With this extension, you should install Lispy and do not enable lispy-mode directly.
|
||||||
paredit ; Introduce some paredit commands.
|
|
||||||
smart-tab ; C-b & C-f jump positions and smart shift with tab & S-tab.
|
smart-tab ; C-b & C-f jump positions and smart shift with tab & S-tab.
|
||||||
smart-yank)) ; Yank behavior depend on mode.
|
smart-yank)) ; Yank behavior depend on mode.
|
||||||
(add-hook 'clojure-mode-hook #'parinfer-mode)
|
(add-hook 'clojure-mode-hook #'parinfer-mode)
|
||||||
|
@ -158,17 +159,6 @@
|
||||||
(add-hook 'scheme-mode-hook #'parinfer-mode)
|
(add-hook 'scheme-mode-hook #'parinfer-mode)
|
||||||
(add-hook 'lisp-mode-hook #'parinfer-mode)))
|
(add-hook 'lisp-mode-hook #'parinfer-mode)))
|
||||||
|
|
||||||
; paredit
|
|
||||||
(use-package paredit
|
|
||||||
:config
|
|
||||||
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
|
|
||||||
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
|
|
||||||
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
|
|
||||||
(add-hook 'ielm-mode-hook #'enable-paredit-mode)
|
|
||||||
(add-hook 'clojure-mode-hook #'enable-paredit-mode)
|
|
||||||
(add-hook 'lisp-mode-hook #'enable-paredit-ode)
|
|
||||||
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
|
|
||||||
(add-hook 'scheme-mode-hook #'enable-paredit-mode))
|
|
||||||
|
|
||||||
;yasnippet
|
;yasnippet
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
|
@ -310,12 +300,18 @@
|
||||||
(setq rm-whitelist "*")
|
(setq rm-whitelist "*")
|
||||||
(rich-minority-mode 1))
|
(rich-minority-mode 1))
|
||||||
|
|
||||||
; smart-mode-line
|
;; ; smart-mode-line
|
||||||
(use-package smart-mode-line
|
;; (use-package smart-mode-line
|
||||||
:config
|
;; :config
|
||||||
(setq sml/theme 'respectful)
|
;; (setq sml/theme 'respectful)
|
||||||
(setq sml/no-confirm-load-theme t)
|
;; (setq sml/no-confirm-load-theme t)
|
||||||
(sml/setup))
|
;; (sml/setup))
|
||||||
|
|
||||||
|
;; doom-modeline
|
||||||
|
(use-package doom-modeline
|
||||||
|
:hook (after-init . doom-modeline-mode))
|
||||||
|
(set-face-attribute 'mode-line nil
|
||||||
|
:box '(:line-width 3))
|
||||||
|
|
||||||
;; ivy
|
;; ivy
|
||||||
|
|
||||||
|
@ -438,6 +434,11 @@
|
||||||
; magit ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
|
; magit ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
|
||||||
(use-package magit)
|
(use-package magit)
|
||||||
|
|
||||||
|
(use-package git-gutter
|
||||||
|
:config
|
||||||
|
(global-git-gutter-mode +1))
|
||||||
|
|
||||||
|
|
||||||
(use-package evil-magit)
|
(use-package evil-magit)
|
||||||
|
|
||||||
|
|
||||||
|
@ -581,4 +582,4 @@
|
||||||
'(org-journal-dir "~/org/journal/")
|
'(org-journal-dir "~/org/journal/")
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(quote
|
||||||
(clj-refactor paredit yascroll yaml-mode writeroom-mode which-key w3m use-package toml-mode smartparens smart-mode-line rainbow-delimiters racer projectile parinfer org-plus-contrib org-journal neotree multiple-cursors minimap lsp-ui lsp-haskell inflections hydra general focus flycheck-rust flycheck-pos-tip flycheck-clojure flx exec-path-from-shell evil-org evil-magit evil-escape evil-commentary emidje edn editorconfig counsel company-quickhelp company-math company-lsp company-auctex bug-hunter auto-package-update all-the-icons aggressive-indent))))
|
(git-gutter doom-modeline clj-refactor paredit yascroll yaml-mode writeroom-mode which-key w3m use-package toml-mode smartparens smart-mode-line rainbow-delimiters racer projectile parinfer org-plus-contrib org-journal neotree multiple-cursors minimap lsp-ui lsp-haskell inflections hydra general focus flycheck-rust flycheck-pos-tip flycheck-clojure flx exec-path-from-shell evil-org evil-magit evil-escape evil-commentary emidje edn editorconfig counsel company-quickhelp company-math company-lsp company-auctex bug-hunter auto-package-update all-the-icons aggressive-indent))))
|
||||||
|
|
Loading…
Reference in New Issue