Browse Source

Code cleanup

main
parent
commit
79f194da3e
  1. 25
      README.org
  2. 12
      modules/core.el
  3. 3
      modules/writing.el

25
README.org

@ -292,16 +292,26 @@ Despite having our *stateful* and *immutable* configurations seperate, it's good
(use-package no-littering)
#+end_src
Emacs' default user interface is horrendous, but with less than 10 lines of code we can change that.
Emacs' default user interface is *horrendous*, let's do something about that.
#+begin_src emacs-lisp
(setq inhibit-startup-message t)
(setq inhibit-startup-message t
initial-scratch-message "")
(global-prettify-symbols-mode)
(when (window-system)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(tooltip-mode -1))
#+end_src
Emacs has a long history of running on machines without gigabytes of available memory, let it realize its full potential! Just kidding, it just smashes *CPU0*.
#+begin_src emacs-lisp
(setq gc-cons-treshold most-positive-fixnum
gnutls-min-prime-bits 4096)
#+end_src
*** Babel
@ -822,6 +832,13 @@ I am using [[https://orgmode.org][org-mode]] extensively for writing projects fo
:hook (org-mode . org-superstar-mode))
#+end_src
Encrypt files using symmetric key encryption via PGP. This enables my workflow of storing my personal notes anywhere. Emacs can cache the gpg password if you trust your session.
#+begin_src emacs-lisp
(setq epa-file-select-keys 2
epa-file-cache-passphrase-for-symmetric-encryption t)
#+end_src
*** Roam
#+ATTR_ORG: :width 420px

12
modules/core.el

@ -23,13 +23,19 @@
(use-package no-littering)
(setq inhibit-startup-message t)
(setq inhibit-startup-message t
initial-scratch-message "")
(global-prettify-symbols-mode)
(when (window-system)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(tooltip-mode -1))
(setq gc-cons-treshold most-positive-fixnum
gnutls-min-prime-bits 4096)
(use-package org
:hook (org-mode . (lambda ()

3
modules/writing.el

@ -2,6 +2,9 @@
:after org
:hook (org-mode . org-superstar-mode))
(setq epa-file-select-keys 2
epa-file-cache-passphrase-for-symmetric-encryption t)
(use-package org-roam
:hook (after-init . org-roam-mode)
:custom (org-roam-directory org-directory)

Loading…
Cancel
Save