Compare commits

...

2 commits

2 changed files with 46 additions and 30 deletions

View file

@ -19,6 +19,7 @@ default.
(when (file-exists-p bootstrap-file)
(load bootstrap-file nil 'nomessage)))
(require 'straight)
(straight-use-package 'use-package)
#+end_src
** Defaults
@ -37,6 +38,15 @@ section of configuration.
(delete-selection-mode +1)
#+end_src
Suppress compilation warnings since they're /usually/ just about
docstring sizes...
#+begin_src emacs-lisp
(require 'warnings)
(add-to-list 'warning-suppress-types '(comp))
(add-to-list 'warning-suppress-log-types '(comp))
#+end_src
Bind mouse keys to expected movement commands
#+begin_src emacs-lisp
@ -96,28 +106,24 @@ Configure the look and feel of Emacs
(add-hook 'server-after-make-frame-hook
(lambda () (when (display-graphic-p) (my/load-theme-and-configure))))
(use-package all-the-icons
:straight t)
(use-package all-the-icons-dired
:straight t
:after all-the-icons
:hook (dired-mode . all-the-icons-dired-mode))
(use-package all-the-icons-ibuffer
:straight t
:after all-the-icons
:hook (ibuffer-mode . all-the-icons-ibuffer-mode))
(use-package all-the-icons-completion
:straight t
:after (all-the-icons marginalia-mode)
:hook (marginalia-mode . all-the-icons-completion-marginalia-setup))
(use-package nerd-icons
:straight t)
(use-package nerd-icons-dired
:straight t
:after (nerd-icons dired)
:hook (dired-mode . nerd-icons-dired-mode))
(use-package nerd-icons-ibuffer
:straight t
:after (nerd-icons ibuffer)
:hook (ibuffer-mode . nerd-icons-ibuffer-mode))
(use-package nerd-icons-completion
:straight t
:after (nerd-icons marginalia)
:hook (marginalia-mode . nerd-icons-completion-marginalia-setup))
(use-package nerd-icons-corfu
:straight t
:after nerd-icons)
@ -1042,7 +1048,7 @@ Configure email with iCalendar event support, to integrate with
(expand-file-name "~/Documents/library/")))
:config
(require 'org)
(require 'all-the-icons)
(require 'nerd-icons)
(setopt org-cite-insert-processor 'citar
org-cite-follow-processor 'citar
org-cite-activate-processor 'citar)
@ -1050,25 +1056,36 @@ Configure email with iCalendar event support, to integrate with
(add-to-list 'org-cite-global-bibliography bibfile))
(defvar citar-indicator-files-icons
(citar-indicator-create
:symbol (all-the-icons-octicon "file-pdf")
:symbol (nerd-icons-octicon
"nf-oct-file"
:face 'nerd-icons-green
:v-adjust -0.1)
:function #'citar-has-files
:padding " " ; need this because the default padding is too low for these icons
:tag "has:files"))
(defvar citar-indicator-links-icons
(citar-indicator-create
:symbol (all-the-icons-octicon "link")
:symbol (nerd-icons-octicon
"nf-oct-link"
:face 'nerd-icons-orange
:v-adjust 0.01)
:function #'citar-has-links
:padding " " ; need this because the default padding is too low for these icons
:tag "has:links"))
(defvar citar-indicator-notes-icons
(citar-indicator-create
:symbol (all-the-icons-octicon "file-text")
:symbol (nerd-icons-octicon
"nf-oct-note"
:face 'nerd-icons-blue
:v-adjust -0.3)
:function #'citar-has-notes
:padding " " ; need this because the default padding is too low for these icons
:tag "has:notes"))
(defvar citar-indicator-cited-icons
(citar-indicator-create
:symbol (all-the-icons-octicon "file-binary")
:symbol (nerd-icons-octicon
"nf-oct-circle"
:face 'nerd-icon-green)
:function #'citar-is-cited
:padding " " ; need this because the default padding is too low for these icons
:tag "is:cited"))

View file

@ -1,8 +1,4 @@
(("all-the-icons-completion" . "4c8bcad8033f5d0868ce82ea3807c6cd46c4a198")
("all-the-icons-dired" . "e157f0668f22ed586aebe0a2c0186ab07702986c")
("all-the-icons-ibuffer" . "280c99bb32dae3f0c43e97756d495beaf4554460")
("all-the-icons.el" . "39ef44f810c34e8900978788467cc675870bcd19")
("apheleia" . "3e347cff47eb0072b47c56f6188c4f440e477770")
(("apheleia" . "3e347cff47eb0072b47c56f6188c4f440e477770")
("base16-emacs" . "8789114e45d09d114e0e197cb090ce7beb993901")
("bbdb" . "53e8ba04c47b3542db75b68f9663941daf2e6ca4")
("cape" . "5c468d6d657e8dc604ddf3feb80f70e1e05ac0a1")
@ -47,7 +43,10 @@
("marginalia" . "7a7f3363d042d1bf43ae697f4401638ed18230a5")
("markdown-mode" . "8a7773f87733866a961ea4c518a4a2f283f21970")
("melpa" . "c13d67c87248b9af8f9d6265a8626a330f9d478c")
("nerd-icons-completion" . "426a1d7c29a04ae8e6ae9b55b0559f11a1e8b420")
("nerd-icons-corfu" . "7077bb76fefc15aed967476406a19dc5c2500b3c")
("nerd-icons-dired" . "c1c73488630cc1d19ce1677359f614122ae4c1b9")
("nerd-icons-ibuffer" . "16270e898abbba2bd810cbf97f999c6142863101")
("nerd-icons.el" . "dcfc64152ada7514bcdd1c6ce45590c359445ec6")
("nix-mode" . "719feb7868fb567ecfe5578f6119892c771ac5e5")
("nongnu-elpa" . "f031337c6ee125455a98e2de899a563388e5de19")
@ -65,7 +64,7 @@
("seq" . "da86da9bf111f68fb81efd466d76d53af5aebc00")
("shrink-path.el" . "c14882c8599aec79a6e8ef2d06454254bb3e1e41")
("straight.el" . "88e574ae75344e39b436f863ef0344135c7b6517")
("string-inflection" . "50ad54970b3cc79b6b83979bde9889ad9a9e1a9c")
("string-inflection" . "be3808c9bbd3f732f94cea7e19ad68eac5f6dad0")
("tempel" . "317c0e41d542721db11a7a8a1c6b78762959259b")
("track-changes" . "fa984c7d5a67b60bad4240e15a6d0d9d1896b07d")
("transient" . "b2cb4e578f2362a0354c4a31a6bd89d6c4b63d63")