Browse Source

Cleanup

main
parent
commit
9b80ba168b
  1. 37
      modules/core.org
  2. 3
      modules/encryption.org

37
modules/core.org

@ -57,28 +57,22 @@ Minimal configuration to make Emacs usable for my own personal workflow. This do
* Cleanup * Cleanup
Despite having our *stateful* and *immutable* configurations seperate, it's good practice to make efforts to reduce the trash created by Emacs. Install *no-littering*[fn:3] to reduce the files created by Emacs.
Despite having our *stateful* and *immutable* configurations seperate, it's good practice to make efforts to reduce the trash created by Emacs. Install *no-littering*[fn:3] to reduce the files created by Emacs. Now that we've taken care of how it acts, we can work on how it looks. Emacs' default user interface is *horrendous*, let's do something about that. Emacs has a long history of running on machines without gigabytes of available memory, let it realize its full potential by increasing the garbage collection threshold.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package no-littering)
#+end_src
Now that we've taken care of how it acts, we can work on how it looks. Emacs' default user interface is *horrendous*, let's do something about that.
#+begin_src emacs-lisp
(setq inhibit-startup-message t
initial-scratch-message "")
(global-prettify-symbols-mode)
(when (fboundp 'tooltip-mode)
(use-package no-littering
:custom (inhibit-startup-message t)
(initial-scratch-message "")
(custom gc-cons-threshold most-positive-fixnum)
:config (global-prettify-symbols-mode)
(when (fboundp 'tooltip-mode)
(tooltip-mode -1)) (tooltip-mode -1))
(when (fboundp 'tool-bar-mode)
(when (fboundp 'tool-bar-mode)
(tool-bar-mode -1)) (tool-bar-mode -1))
(when (fboundp 'menu-bar-mode)
(when (fboundp 'menu-bar-mode)
(menu-bar-mode -1)) (menu-bar-mode -1))
(when (fboundp 'scroll-bar-mode)
(scroll-bar-mode -1))
(when (fboundp 'scroll-bar-mode)
(scroll-bar-mode -1)))
#+end_src #+end_src
* Methods * Methods
@ -112,15 +106,6 @@ Function that takes in a system and configuration file path, checks to see if th
(make-symbolic-link dot-file sys-file)))) (make-symbolic-link dot-file sys-file))))
#+end_src #+end_src
* Performance
Emacs has a long history of running on machines without gigabytes of available memory, let it realize its full potential by increasing the garbage collection threshold and the minimum prime bit size.
#+begin_src emacs-lisp
(setq gc-cons-threshold most-positive-fixnum
gnutls-min-prime-bits 4096)
#+end_src
* Resources * Resources
[fn:1] https://chrishayward.xyz/posts/immutable-emacs/ [fn:1] https://chrishayward.xyz/posts/immutable-emacs/

3
modules/encryption.org

@ -42,11 +42,12 @@ Create the symbolic link to the configuration file
* Setting up pinentry in Emacs * Setting up pinentry in Emacs
With the *Pinentry*[fn:2] package for Emacs prompts will now appear in the minibuffer.
With the *Pinentry*[fn:2] package for Emacs prompts will now appear in the minibuffer. Increase the minimum prime bit size to increase performance during symmetric encryption.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package pinentry (use-package pinentry
:custom (epa-file-select-keys 2) :custom (epa-file-select-keys 2)
(gnutls-min-prime-bits 4096)
(epa-pinentry-mode 'loopback) (epa-pinentry-mode 'loopback)
(epa-file-encrypt-to dotfiles/public-key) (epa-file-encrypt-to dotfiles/public-key)
(epa-file-cache-passphrase-for-symmetric-encryption t) (epa-file-cache-passphrase-for-symmetric-encryption t)

Loading…
Cancel
Save