This commit is contained in:
ry
2021-10-25 12:28:40 -07:00
parent c71112901a
commit 8e2964a63e
8 changed files with 107 additions and 165 deletions
+24 -39
View File
@@ -1,44 +1,48 @@
#+title: Emacs Custom Configuration File
#+PROPERTY: header-args:emacs-lisp :tangle ~/.dotfiles/.config/doom/config.el
#+PROPERTY: header-args:emacs-lisp :tangle ~/dotfiles/.config/doom/config.el :mkdirp yes :lexical yes
* Preface
This document contains the fundamental elements of my Emacs configuration. Changes made to this file will reflect in init.el.
* Table of Contents
:PROPERTIES:
:TOC: :include all :ignore this
:END:
* Doom Startup Configuration
* General Configuration
** Keep Folders Clean
Emacs package configuration files aren't standardized and as a result sometimes packages litter the emacs config folder. no-littering ensures that packages are kept organized.
I need to test that I can remove this still.
#+begin_src emacs-lisp
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "John Doe"
user-mail-address "john@doe.com")
;; Keep emacs folder tidy.
(use-package no-littering)
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme 'modus-vivendi)
;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type t)
#+end_src
* General Configuration
** User Interface
#+begin_src emacs-lisp
;; Disables the doom splash screen
(setq inhibit-startup-message t)
(set-fringe-mode 10)
;; scroll 1 line at a time
(setq scroll-step 1)
;; Set visible bell
(setq visible-bell t)
(dolist (mode '(org-mode-hook
shell-mode-hook))
term-mode-hook
shell-mode-hook
eshell-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 0))))
#+end_src
@@ -96,8 +100,6 @@ Using [[https://github.com/tonsky/FiraCode][Fira Code]] + Fira Code Retina.
#+end_src
#+RESULTS:
| ~/org/planner.org |
** General Configuration
@@ -252,20 +254,3 @@ Since we don't want to have to manually use the org-babel-tangle function everyt
(dired "/ssh:root@207.66.177.26#46668:/"))
#+end_src
* Change Auto-Save Directory
#+begin_src emacs-lisp
(setq backup-directory-alist
`(("." . ,(concat user-emacs-directory "backups"))))
(customize-set-variable
'tramp-backup-directory-alist backup-directory-alist)
(setq tramp-auto-save-directory "~/.dotfiles/.config/emacs/backups/remote")
#+end_src