Browse Source

Cleanup hydra and font configs

main
parent
commit
52d27de344
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 18
      README.org

18
README.org

@ -1578,7 +1578,7 @@ let
<<emacs-eshell-package>>
<<emacs-vterm-package>>
<<emacs-magit-package>>
<<emacs-fonts-package>>
<<emacs-hydra-package>>
<<emacs-elfeed-package>>
<<emacs-nix-mode-package>>
<<emacs-projectile-package>>
@ -2124,25 +2124,25 @@ epkgs.magit
"gp" '(magit-pull :which-key "Pull"))
#+END_SRC
** Fonts
** Hydra
#+NAME: emacs-fonts-package
#+NAME: emacs-hydra-package
#+BEGIN_SRC nix
epkgs.hydra
#+END_SRC
[[https://github.com/abo-abo/hydra][Hydra]] allows you to create keymaps for related commands, with the ability to easily repeat commands using a single keystroke.
** Fonts
[[https://typeof.net/Iosevka][Iosevka]] is an open-source, sans-serif + slab-serif, monospace + quasi-proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. Configure it as the default font face inside of [[https://gnu.org/software/emacs/][Emacs]] and define a [[https://github.com/abo-abo/hydra][Hydra]] command for quickly scaling text.
#+NAME: emacs-fonts-elisp
#+BEGIN_SRC emacs-lisp
;; Configure the font when running as `emacs-server'.
(custom-set-faces
'(default ((t (:inherit nil :height 120 :family "Iosevka")))))
;; Set all three of Emacs' font faces.
;; NOTE: This only works without `emacs-server'.
;; (set-face-attribute 'default nil :font "Iosevka" :height 120)
;; (set-face-attribute 'fixed-pitch nil :font "Iosevka" :height 120)
;; (set-face-attribute 'variable-pitch nil :font "Iosevka" :height 120)
;; Define a `hydra' function for scaling the text interactively.
(defhydra hydra-text-scale (:timeout 4)
"Scale the text in the current buffer."

Loading…
Cancel
Save