meta: refactor a bunch of the config
i was having an unbelievable annoyance with spacious-padding until i realised i could just use the :init keyword, rolfcopter
This commit is contained in:
parent
4e276838fb
commit
35e5d38e54
4 changed files with 53 additions and 37 deletions
|
@ -5,19 +5,38 @@
|
|||
* Emacs window stuff
|
||||
Things like turning off the menubar, etc.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package emacs
|
||||
:config
|
||||
(menu-bar-mode -1)
|
||||
(scroll-bar-mode -1)
|
||||
(tool-bar-mode -1)
|
||||
(recentf-mode 1)
|
||||
:custom
|
||||
(inhibit-startup-message t)
|
||||
(initial-scratch-message nil)
|
||||
(org-startup-with-inline-images t))
|
||||
(use-package emacs
|
||||
:init
|
||||
(setq frame-resize-pixelwise t
|
||||
frame-inhibit-implied-resize t)
|
||||
(menu-bar-mode -1)
|
||||
(scroll-bar-mode -1)
|
||||
(tool-bar-mode -1)
|
||||
(recentf-mode 1)
|
||||
(fringe-mode -1)
|
||||
:custom
|
||||
(inhibit-startup-message t)
|
||||
(initial-scratch-message nil)
|
||||
(org-startup-with-inline-images t)
|
||||
(use-short-answers t)
|
||||
(frame-title-format '("%b"))
|
||||
(ring-bell-function 'ignore)
|
||||
(use-dialog-box nil)
|
||||
(use-file-dialog nil))
|
||||
#+END_SRC
|
||||
|
||||
* Theming
|
||||
** Spacious Padding
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package spacious-padding :ensure t
|
||||
:hook (after-init . spacious-padding-mode)
|
||||
:bind ("<f8>" . spacious-padding-mode))
|
||||
#+END_SRC
|
||||
** Mood-line
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package mood-line :ensure t
|
||||
:hook (after-init . mood-line-mode))
|
||||
#+END_SRC
|
||||
** Nerd Fonts
|
||||
May or may not need nerd fonts for some of the below packages. 8)
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
@ -42,25 +61,18 @@ Using doom-themes here because Tokyo Night isn't on MELPA.
|
|||
;; Enable custom neotree theme (all-the-icons must be installed!)
|
||||
(doom-themes-neotree-config)
|
||||
;; or for treemacs users
|
||||
(setq doom-themes-treemacs-theme "doom-atom") ; use "doom-colors" for less minimal icon theme
|
||||
(setq doom-themes-treemacs-theme "doom-tokyo-night") ; use "doom-colors" for less minimal icon theme
|
||||
(doom-themes-treemacs-config)
|
||||
;; Corrects (and improves) org-mode's native fontification.
|
||||
(doom-themes-org-config))
|
||||
#+END_SRC
|
||||
|
||||
** Doom Modeline
|
||||
Also may not need doom modeline.
|
||||
** Mood-line
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package doom-modeline
|
||||
:ensure t
|
||||
:hook (after-init . doom-modeline-mode)
|
||||
:config
|
||||
(setq doom-modeline-height 29)
|
||||
(custom-set-faces
|
||||
'(mode-line ((t (:family "Noto Sans" :height 1.0))))
|
||||
'(mode-line-active ((t (:family "Noto Sans" :height 1.0)))) ; For 29+
|
||||
'(mode-line-inactive ((t (:family "Noto Sans" :height 1.0))))))
|
||||
#+END_SRC
|
||||
(use-package mood-line :ensure t
|
||||
:custom (mood-line-glyph-alist mood-line-glyphs-fira-code)
|
||||
:hooks (after-init . mood-line-mode))
|
||||
#+END_SRC emacs-lisp
|
||||
|
||||
* Vertico, Orderless, and more stuff
|
||||
Personal favourite emacs completer, and my computer can run it! 8)
|
||||
|
@ -277,7 +289,7 @@ Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now.
|
|||
** SPECIFIC LANGUAGES
|
||||
*** Nix
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package nix-ts-mode
|
||||
(use-package nix-mode
|
||||
:mode "\\.nix\\'")
|
||||
(use-package lsp-mode
|
||||
:custom
|
||||
|
|
|
@ -9,7 +9,7 @@ let
|
|||
extraEmacsPackages =
|
||||
e: (builtins.attrValues {
|
||||
inherit (e)
|
||||
nix-ts-mode
|
||||
nix-mode
|
||||
doom-themes
|
||||
vertico
|
||||
orderless
|
||||
|
@ -40,6 +40,8 @@ let
|
|||
envrc
|
||||
ccls
|
||||
org-roam
|
||||
spacious-padding
|
||||
mood-line
|
||||
;
|
||||
}) ++ [
|
||||
e.treesit-grammars.with-all-grammars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue