Add and remove packages
Add: smartparens, org-journal, corfu, slime, project, consult Remove: paredit
This commit is contained in:
parent
889d184699
commit
738eb96304
96
init.el
96
init.el
|
@ -29,18 +29,14 @@
|
|||
|
||||
(use-package magit
|
||||
:bind ("C-x g" . magit-status))
|
||||
(use-package paredit)
|
||||
;; (use-package solarized-theme
|
||||
;; :init
|
||||
;; (setq solarized-scale-org-headlines nil
|
||||
;; solarized-scale-outline-headlines nil
|
||||
;; solarized-use-less-bold t
|
||||
;; solarized-use-variable-pitch nil)
|
||||
;; :config
|
||||
;; (load-theme 'solarized-dark t))
|
||||
(use-package modus-themes
|
||||
:ensure t
|
||||
:init
|
||||
(modus-themes-load-themes)
|
||||
:config
|
||||
(load-theme 'modus-vivendi))
|
||||
(modus-themes-load-vivendi)
|
||||
:bind
|
||||
("<f5>" . modus-themes-toggle))
|
||||
(use-package vertico
|
||||
:config
|
||||
(vertico-mode))
|
||||
|
@ -49,11 +45,84 @@
|
|||
(setq completion-styles '(orderless basic)
|
||||
completion-category-defaults nil
|
||||
completion-category-overrides '((file (styles partial-completion)))))
|
||||
|
||||
;;(setq geiser-chicken-binary "/usr/local/bin/chicken-csi")
|
||||
(use-package smartparens-config
|
||||
:ensure smartparens
|
||||
:config (progn (show-smartparens-global-mode t)))
|
||||
(use-package org-journal
|
||||
:ensure t
|
||||
:defer t
|
||||
:config
|
||||
(setq org-journal-dir "~/journal"
|
||||
org-journal-file-type 'monthly))
|
||||
(use-package corfu
|
||||
:init
|
||||
(global-corfu-mode))
|
||||
(use-package slime
|
||||
:init
|
||||
(setq inferior-lisp-program "sbcl")
|
||||
:defer t)
|
||||
(use-package project)
|
||||
(use-package consult
|
||||
:init
|
||||
(setq consult-grep-args "ggrep --null --line-buffered --color=never --ignore-case --line-number -I -r .")
|
||||
(setq xref-show-xrefs-function #'consult-xref
|
||||
xref-show-definitions-function #'consult-xref)
|
||||
:bind (;; C-c bindings (mode-specific-map)
|
||||
;; C-x bindings (ctl-x-map)
|
||||
("C-x M-:" . consult-complex-command) ;; orig. repeat-complex-command
|
||||
("C-x b" . consult-buffer) ;; orig. switch-to-buffer
|
||||
("C-x 4 b" . consult-buffer-other-window) ;; orig. switch-to-buffer-other-window
|
||||
("C-x 5 b" . consult-buffer-other-frame) ;; orig. switch-to-buffer-other-frame
|
||||
("C-x r b" . consult-bookmark) ;; orig. bookmark-jump
|
||||
("C-x p b" . consult-project-buffer) ;; orig. project-switch-to-buffer
|
||||
;; Custom M-# bindings for fast register access
|
||||
("M-#" . consult-register-load)
|
||||
("M-'" . consult-register-store) ;; orig. abbrev-prefix-mark (unrelated)
|
||||
("C-M-#" . consult-register)
|
||||
;; Other custom bindings
|
||||
("M-y" . consult-yank-pop) ;; orig. yank-pop
|
||||
("<help> a" . consult-apropos) ;; orig. apropos-command
|
||||
;; M-g bindings (goto-map)
|
||||
("M-g e" . consult-compile-error)
|
||||
("M-g f" . consult-flymake) ;; Alternative: consult-flycheck
|
||||
("M-g g" . consult-goto-line) ;; orig. goto-line
|
||||
("M-g M-g" . consult-goto-line) ;; orig. goto-line
|
||||
("M-g o" . consult-outline) ;; Alternative: consult-org-heading
|
||||
("M-g m" . consult-mark)
|
||||
("M-g k" . consult-global-mark)
|
||||
("M-g i" . consult-imenu)
|
||||
("M-g I" . consult-imenu-multi)
|
||||
;; M-s bindings (search-map)
|
||||
("M-s d" . consult-find)
|
||||
("M-s D" . consult-locate)
|
||||
("M-s g" . consult-grep)
|
||||
("M-s G" . consult-git-grep)
|
||||
("M-s r" . consult-ripgrep)
|
||||
("M-s l" . consult-line)
|
||||
("M-s L" . consult-line-multi)
|
||||
("M-s m" . consult-multi-occur)
|
||||
("M-s k" . consult-keep-lines)
|
||||
("M-s u" . consult-focus-lines)
|
||||
;; Isearch integration
|
||||
("M-s e" . consult-isearch-history)
|
||||
:map isearch-mode-map
|
||||
("M-e" . consult-isearch-history) ;; orig. isearch-edit-string
|
||||
("M-s e" . consult-isearch-history) ;; orig. isearch-edit-string
|
||||
("M-s l" . consult-line) ;; needed by consult-line to detect isearch
|
||||
("M-s L" . consult-line-multi) ;; needed by consult-line to detect isearch
|
||||
;; Minibuffer history
|
||||
:map minibuffer-local-map
|
||||
("M-s" . consult-history) ;; orig. next-matching-history-element
|
||||
("M-r" . consult-history)) ;; orig. previous-matching-history-)
|
||||
)
|
||||
(use-package expand-region
|
||||
:bind ("C-=" . er/expand-region)
|
||||
:init
|
||||
(setq expand-region-fast-keys-enabled t))
|
||||
|
||||
(add-hook 'org-mode-hook 'auto-fill-mode)
|
||||
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
||||
(add-hook 'prog-mode-hook 'turn-on-smartparens-strict-mode)
|
||||
|
||||
|
||||
(custom-set-variables
|
||||
|
@ -65,8 +134,9 @@
|
|||
'(custom-safe-themes
|
||||
'("4c56af497ddf0e30f65a7232a8ee21b3d62a8c332c6b268c81e9ea99b11da0d3" "4cc1cc7efd5c2362ef684657eec7d7e482223b1def4edeb0fab52ba1d334d38a" "0c2d7f410f835d59a0293f2a55744e9d3be13aab8753705c6ad4a9a968fb3b28" default))
|
||||
'(desktop-save-mode nil)
|
||||
'(org-agenda-files '("~/org/home.org"))
|
||||
'(package-selected-packages
|
||||
'(smartparens modus-themes orderless solarized-theme vertico use-package racket-mode projectile paredit magit)))
|
||||
'(expand-region project consult pdf-tools slime corfu org-journal smartparens modus-themes orderless solarized-theme vertico use-package racket-mode magit)))
|
||||
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
|
|
Loading…
Reference in New Issue