style(emacs): format config.org
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
This commit is contained in:
parent
c6baf97dd9
commit
824adba95b
@ -25,8 +25,8 @@
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(set-face-attribute 'default nil :family "Fira Code" :height 130)
|
(set-face-attribute 'default nil :family "Fira Code" :height 130)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Splash Screen
|
|
||||||
|
|
||||||
|
** Splash Screen
|
||||||
Remove splash screen and use a *scratch* buffer instead
|
Remove splash screen and use a *scratch* buffer instead
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq inhibit-startup-message t
|
(setq inhibit-startup-message t
|
||||||
@ -34,7 +34,6 @@ Remove splash screen and use a *scratch* buffer instead
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Line Numbers
|
** Line Numbers
|
||||||
|
|
||||||
Default to enabling line numbers in all buffers
|
Default to enabling line numbers in all buffers
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq display-line-numbers-type 'relative
|
(setq display-line-numbers-type 'relative
|
||||||
@ -43,14 +42,12 @@ Default to enabling line numbers in all buffers
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Improved Tabs/Indentation
|
** Improved Tabs/Indentation
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq-default indent-tabs-mode nil)
|
(setq-default indent-tabs-mode nil)
|
||||||
(setq-default tab-width 4)
|
(setq-default tab-width 4)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Improved default visuals
|
** Improved default visuals
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
@ -96,10 +93,9 @@ Default to enabling line numbers in all buffers
|
|||||||
:config
|
:config
|
||||||
(evil-mode 1))
|
(evil-mode 1))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* General.el
|
* General.el
|
||||||
|
|
||||||
Used for keybindings
|
Used for keybindings
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package general
|
(use-package general
|
||||||
:ensure (:wait t)
|
:ensure (:wait t)
|
||||||
@ -115,7 +111,6 @@ Used for keybindings
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Which Key
|
* Which Key
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
:defer nil
|
:defer nil
|
||||||
@ -139,7 +134,6 @@ Used for keybindings
|
|||||||
|
|
||||||
* Treesitter
|
* Treesitter
|
||||||
** Auto setup
|
** Auto setup
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package treesit-auto
|
(use-package treesit-auto
|
||||||
:custom
|
:custom
|
||||||
@ -148,8 +142,8 @@ Used for keybindings
|
|||||||
(treesit-auto-add-to-auto-mode-alist 'all)
|
(treesit-auto-add-to-auto-mode-alist 'all)
|
||||||
(global-treesit-auto-mode))
|
(global-treesit-auto-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Nix Integration
|
|
||||||
|
|
||||||
|
** Nix Integration
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package nix-ts-mode
|
(use-package nix-ts-mode
|
||||||
:mode "\\.nix\\'")
|
:mode "\\.nix\\'")
|
||||||
@ -158,7 +152,6 @@ Used for keybindings
|
|||||||
* Completion
|
* Completion
|
||||||
|
|
||||||
** Orderless w/ Hotfuzz
|
** Orderless w/ Hotfuzz
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package hotfuzz
|
(use-package hotfuzz
|
||||||
:ensure (:host github
|
:ensure (:host github
|
||||||
@ -191,20 +184,6 @@ Used for keybindings
|
|||||||
(derived-mode-p 'eshell-mode))
|
(derived-mode-p 'eshell-mode))
|
||||||
(string-match-p "\\`\\.." word))
|
(string-match-p "\\`\\.." word))
|
||||||
`(orderless-regexp . ,(concat "\\." (substring word 1) (+orderless--consult-suffix))))))
|
`(orderless-regexp . ,(concat "\\." (substring word 1) (+orderless--consult-suffix))))))
|
||||||
|
|
||||||
(defun flex-if-twiddle (pattern _index _total)
|
|
||||||
(when (string-suffix-p "~" pattern)
|
|
||||||
`(orderless-flex . ,(substring pattern 0 -1))))
|
|
||||||
|
|
||||||
(defun first-initialism (pattern index _total)
|
|
||||||
(if (= index 0) 'orderless-initialism))
|
|
||||||
|
|
||||||
(defun not-if-bang (pattern _index _total)
|
|
||||||
(cond
|
|
||||||
((equal "!" pattern)
|
|
||||||
#'ignore)
|
|
||||||
((string-prefix-p "!" pattern)
|
|
||||||
`(orderless-not . ,(substring pattern 1)))))
|
|
||||||
(setq
|
(setq
|
||||||
completion-ignore-case t
|
completion-ignore-case t
|
||||||
completion-styles '(hotfuzz orderless basic)
|
completion-styles '(hotfuzz orderless basic)
|
||||||
@ -213,6 +192,10 @@ Used for keybindings
|
|||||||
orderless-component-separator #'orderless-escapable-split-on-space
|
orderless-component-separator #'orderless-escapable-split-on-space
|
||||||
orderless-style-dispatchers (list #'+orderless-consult-dispatch
|
orderless-style-dispatchers (list #'+orderless-consult-dispatch
|
||||||
#'orderless-affix-dispatch)
|
#'orderless-affix-dispatch)
|
||||||
|
completion-category-overrides '((file (styles partial-completion))
|
||||||
|
(command (styles +orderless-with-initialism))
|
||||||
|
(variable (styles +orderless-with-initialism))
|
||||||
|
(symbol (styles +orderless-with-initialism)))
|
||||||
orderless-matching-styles
|
orderless-matching-styles
|
||||||
'(orderless-prefixes
|
'(orderless-prefixes
|
||||||
orderless-initialism
|
orderless-initialism
|
||||||
@ -221,7 +204,6 @@ Used for keybindings
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Corfu
|
** Corfu
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:custom
|
:custom
|
||||||
@ -275,7 +257,6 @@ Used for keybindings
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Marginalia
|
** Marginalia
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
; :ensure (:host github
|
; :ensure (:host github
|
||||||
@ -292,7 +273,6 @@ Used for keybindings
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Completion Icons
|
** Completion Icons
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package kind-icon
|
(use-package kind-icon
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -349,7 +329,6 @@ Used for keybindings
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Vertico
|
** Vertico
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package vertico
|
(use-package vertico
|
||||||
:general
|
:general
|
||||||
@ -410,8 +389,28 @@ Used for keybindings
|
|||||||
(vertico-mouse-mode))
|
(vertico-mouse-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Modeline
|
** Consult
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package consult
|
||||||
|
:init
|
||||||
|
(advice-add #'register-preview :override #'consult-register-window)
|
||||||
|
(setq register-preview-delay 0.5
|
||||||
|
register-preview-function #'consult-register-format
|
||||||
|
xref-show-xrefs-function #'consult-xref
|
||||||
|
xref-show-definitions-function #'consult-xref
|
||||||
|
consult-narrow-key "<"
|
||||||
|
completion-in-region-function #'consult-completion-in-region)
|
||||||
|
:general
|
||||||
|
(key-leader
|
||||||
|
:states 'normal
|
||||||
|
"c" '(nil :which-key "Consult")
|
||||||
|
"c b" '(consult-buffer :which-key "Consult: Buffers")
|
||||||
|
"c f" '(consult-fd :which-key "Consult: Find File")
|
||||||
|
"c r" '(consult-recent-file :which-key "Consult: Recent Files")))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
* Modeline
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:custom
|
:custom
|
||||||
@ -437,6 +436,14 @@ Used for keybindings
|
|||||||
(doom-modeline-mode))
|
(doom-modeline-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Save Hist
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package savehist
|
||||||
|
:ensure nil
|
||||||
|
:init
|
||||||
|
(savehist-mode))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Org Mode
|
* Org Mode
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org
|
(use-package org
|
||||||
|
Loading…
Reference in New Issue
Block a user