Switch to nerd fonts, update git url

This commit is contained in:
Curt Spark 2024-03-15 15:18:50 +00:00
parent 9f33bdecfa
commit 5652263bef
1 changed files with 41 additions and 12 deletions

View File

@ -178,20 +178,38 @@ Install and set the modeline, ensuring that it is always installed:
*** All The Icons *** All The Icons
All The Icons is a package to display cool icons within Emacs. All The Icons is a package to display cool icons within Emacs.
Install the package, enable it and ensure that it always is installed: Install the package, enable it and ensure that it always is installed:
#+BEGIN_SRC emacs-lisp +BEGIN_SRC emacs-lisp
(use-package all-the-icons (use-package all-the-icons
:ensure t) :ensure t)
(setq inhibit-compacting-font-caches t) ; Dont compact font caches during GC. Fixes lag on doom modeline
+END_SRC
All The Icons Support for Ivy/Counsel. Which are autocompletion tools in emacs
Install the package, enable it and ensure that it always is installed:
+BEGIN_SRC emacs-lisp
(use-package all-the-icons-ivy
:ensure t
:init
(all-the-icons-ivy-setup))
+END_SRC
*** Nerd Fonts
Alternative to All The Icons, provides unified experience in TTY and GUI.
Install the package, enable it and ensure that it always is installed:
#+BEGIN_SRC emacs-lisp
(use-package nerd-icons
:ensure t)
(setq inhibit-compacting-font-caches t) ; Dont compact font caches during GC. Fixes lag on doom modeline (setq inhibit-compacting-font-caches t) ; Dont compact font caches during GC. Fixes lag on doom modeline
#+END_SRC #+END_SRC
All The Icons Support for Ivy/Counsel. Which are autocompletion tools in emacs Nerd Icons support for the ivy rich plugin.
Install the package, enable it and ensure that it always is installed: Install the package, enable it and ensure that it always is installed:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package all-the-icons-ivy (use-package nerd-icons-ivy-rich
:ensure t :ensure t
:init :init
(all-the-icons-ivy-setup)) (nerd-icons-ivy-rich-mode 1))
#+END_SRC #+END_SRC
*** Emacs Dashboard *** Emacs Dashboard
A startup dashboard for Emacs, replacing the boring old one. A startup dashboard for Emacs, replacing the boring old one.
@ -253,10 +271,10 @@ Install the package, enable it and ensure that it always is installed:
;; Format: "(icon title help action face prefix suffix)" ;; Format: "(icon title help action face prefix suffix)"
(setq dashboard-navigator-buttons (setq dashboard-navigator-buttons
`(;; line1 `(;; line1
((,(all-the-icons-octicon "mark-github" :height 1.1 :v-adjust 0.0) ((,;; (all-the-icons-octicon "mark-github" :height 1.1 :v-adjust 0.0)
"Homepage" "Homepage"
"Browse homepage" "Browse homepage"
(lambda (&rest _) (browse-url "https://gitlab.com/bloxiebird/linux-emacs-configuration"))) (lambda (&rest _) (browse-url "https://git.cspark.dev/emacs-configuration")))
("★" "Star" "Show stars" (lambda (&rest _) (show-stars)) warning) ("★" "Star" "Show stars" (lambda (&rest _) (show-stars)) warning)
("?" "" "?/h" #'show-help nil "<" ">")) ("?" "" "?/h" #'show-help nil "<" ">"))
)) ))
@ -556,12 +574,12 @@ Install the package, enable it and ensure that it always is installed, and then
Ivy is an autocompletion framework, it will automatically fuzzy find search words for you. This includes file managing, searching, and more via its extensibility and the Counsel package. Ivy is an autocompletion framework, it will automatically fuzzy find search words for you. This includes file managing, searching, and more via its extensibility and the Counsel package.
Install the package, enable it and ensure that it always is installed, and then make sure that ivy-mode is enabled by default: Install the package, enable it and ensure that it always is installed, and then make sure that ivy-mode is enabled by default:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package ivy (use-package ivy
:ensure t :ensure t
:init :init
(ivy-mode 1) (ivy-mode 1)
:bind :bind
("C-s" . swiper)) ("C-s" . swiper))
#+END_SRC #+END_SRC
Ivy Configuration Ivy Configuration
@ -570,6 +588,17 @@ Set an option to make Ivy show previously opened/edited buffers in the buffer se
(setq ivy-use-virtual-buffers t) (setq ivy-use-virtual-buffers t)
;(setq enable-recursive-minibuffers t) ;(setq enable-recursive-minibuffers t)
#+END_SRC #+END_SRC
This package comes with rich transformers for commands from ivy and counsel.
Install the package, enable it and ensure that it always is installed, and then make sure that ivy-rich-mode is enabled by default:
#+BEGIN_SRC emacs-lisp
(use-package ivy-rich
:ensure t
:init
(ivy-rich-mode 1)
(setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line))
#+END_SRC
*** Counsel *** Counsel
A collection of Ivy-enhanced versions of common Emacs commands. A collection of Ivy-enhanced versions of common Emacs commands.
Install the package, enable it and ensure that it always is installed: Install the package, enable it and ensure that it always is installed: