even more stuff
This commit is contained in:
parent
88b71759c5
commit
37129faa83
|
@ -13,6 +13,27 @@
|
||||||
(unless (server-running-p) (server-start))
|
(unless (server-running-p) (server-start))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Fix Indents
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(electric-indent-mode 1)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Autopairs
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(electric-pair-mode 1)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Rainbow Delimiters
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package rainbow-delimiters
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Disable Bars
|
** Disable Bars
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -108,6 +129,7 @@
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package nix-mode :mode "\\.nix\\'")
|
(use-package nix-mode :mode "\\.nix\\'")
|
||||||
|
(use-package lua-mode :mode "\\.lua\\'")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Treesitter
|
** Treesitter
|
||||||
|
@ -138,6 +160,7 @@
|
||||||
java
|
java
|
||||||
js
|
js
|
||||||
json
|
json
|
||||||
|
lua
|
||||||
markdown
|
markdown
|
||||||
python
|
python
|
||||||
ruby
|
ruby
|
||||||
|
@ -185,20 +208,30 @@
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:custom
|
|
||||||
(corfu-cycle t)
|
|
||||||
(corfu-preselect 'prompt)
|
|
||||||
:init
|
|
||||||
(global-corfu-mode))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Flycheck
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(use-package flycheck
|
|
||||||
:ensure t
|
:ensure t
|
||||||
|
:custom
|
||||||
|
(corfu-cycle t) ;;cycle through all things
|
||||||
|
(corfu-auto t) ;;autocomplete
|
||||||
|
(corfu-auto-prefix 1) ;; 2 letters to start autocomplete
|
||||||
|
(corfu-auto-delay 0.0) ;; idk 0s to start?
|
||||||
|
:bind (:map corfu-map ("<escape>" . corfu-quit))
|
||||||
|
:init (global-corfu-mode))
|
||||||
|
|
||||||
|
(use-package cape :ensure t)
|
||||||
|
|
||||||
|
;; get eglot to play nice with corfu
|
||||||
|
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||||
|
|
||||||
|
(use-package kind-icon
|
||||||
|
:ensure t
|
||||||
|
:after corfu
|
||||||
|
:custom
|
||||||
|
(kind-icon-use-icons t)
|
||||||
|
(kind-icon-default-face 'corfu-default)
|
||||||
|
(kind-icon-blend-background nil)
|
||||||
|
(kind-icon-blend-frac 0.08)
|
||||||
:config
|
:config
|
||||||
(add-hook 'after-init-hook #'global-flycheck-mode))
|
(add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Sideline
|
** Sideline
|
||||||
|
@ -206,12 +239,10 @@
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package sideline-flycheck
|
(use-package sideline-flycheck
|
||||||
:hook (flycheck-mode . sideline-mode)
|
:hook (flycheck-mode . sideline-mode)
|
||||||
:init (setq sideline-backends-right '(sideline-flycheck)
|
:init
|
||||||
sideline-delay 0.0))
|
(setq sideline-backends-right '(sideline-flycheck)))
|
||||||
|
|
||||||
(use-package sideline-flycheck
|
(use-package sideline-flycheck :hook (flycheck-mode . sideline-flycheck-setup))
|
||||||
:hook (flycheck-mode . sideline-flycheck-setup)
|
|
||||||
:init (setq sideline-flycheck-display-mode 'line))
|
|
||||||
|
|
||||||
(use-package sideline-eglot
|
(use-package sideline-eglot
|
||||||
:init
|
:init
|
||||||
|
@ -276,6 +307,19 @@
|
||||||
(global-set-key (kbd "C-S-v") 'yank)
|
(global-set-key (kbd "C-S-v") 'yank)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Org Mode Templates
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
;; Inhibits autopairs from running for <> in org mode
|
||||||
|
(add-hook 'org-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(setq-local electric-pair-inhibit-predicate
|
||||||
|
`(lambda (c) (if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
|
||||||
|
|
||||||
|
(require 'org-tempo)
|
||||||
|
(add-to-list 'org-modules 'org-tempo t)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Tab Management
|
* Tab Management
|
||||||
|
|
||||||
** Centaur Tabs
|
** Centaur Tabs
|
||||||
|
|
Loading…
Reference in a new issue