commit b338ce92567eaca4054691ac0b121b4ccf036304
parent 27e84588036aa9cdcc804bccb95bb3a06c28c569
Author: Ethan Long <ethandavidlong@gmail.com>
Date: Wed, 23 Aug 2023 16:22:43 +1000
Fixed a bug or something
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/config.org b/config.org
@@ -56,12 +56,14 @@ We can use ~use-package~ to configure emacs at startup. On MacOS we leave things
Let's get rid of the autosave and backup crap that emacs puts into the active working directories.
#+begin_src emacs-lisp
;; Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/.
+ (setq ethandl/autosave-file-directory (expand-file-name "autosaves/" user-emacs-directory))
+ (setq ethandl/backups-file-directory (expand-file-name "backups/" user-emacs-directory))
(custom-set-variables
- '(auto-save-file-name-transforms '((".*" "~/.config/emacs/autosaves/\\1" t)))
- '(backup-directory-alist '((".*" . "~/.config/emacs/backups/"))))
+ '(auto-save-file-name-transforms ((".*" ethandl/autosave-file-directory t)))
+ '(backup-directory-alist '((".*" . ethandl/backups-file-directory))))
;; create the autosave dir if necessary, since emacs won't.
- (make-directory "~/.config/emacs/autosaves/" t)
+ (make-directory ethandl/autosave-file-directory t)
#+end_src
** Fonts & Ligature definitions
#+begin_src emacs-lisp
@@ -250,7 +252,6 @@ Now let's make org prettier, we want all non-textual markers gone, our fonts to
(defun ethandl/org-mode-prettify ()
(setq org-hide-emphasis-markers t)
- (setq org-ellipsis "▾")
(font-lock-add-keywords 'org-mode
'(("^ *\\([-]\\) "
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•"))))))