diff options
author | Marc Coquand <marc@mccd.space> | 2024-10-06 20:50:21 +0300 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-10-06 20:50:21 +0300 |
commit | 0f3303594d5f91f2547faa97383857859af6e121 (patch) | |
tree | 4acd99a7bc3059e24783e413bb096df14946670b | |
parent | 988341e2df4951286ee6ba18a51a9268f534d8cf (diff) | |
download | bsd-0f3303594d5f91f2547faa97383857859af6e121.tar.gz bsd-0f3303594d5f91f2547faa97383857859af6e121.tar.bz2 bsd-0f3303594d5f91f2547faa97383857859af6e121.zip |
.
-rw-r--r-- | emacs | 37 |
1 files changed, 16 insertions, 21 deletions
@@ -33,11 +33,12 @@ ;; Put Emacs auto-save and backup files to /tmp (defconst emacs-tmp-dir (expand-file-name (format "emacs%d" (user-uid)) temporary-file-directory)) (setq - backup-by-copying t ; Avoid symlinks + backup-by-copying t delete-old-versions t kept-new-versions 6 kept-old-versions 2 version-control t + make-backup-files nil auto-save-list-file-prefix emacs-tmp-dir auto-save-file-name-transforms `((".*" ,emacs-tmp-dir t)) ; Change autosave dir to tmp backup-directory-alist `((".*" . ,emacs-tmp-dir))) @@ -211,13 +212,12 @@ (set 'eldoc-print-after-edit t) (global-eldoc-mode t) (setq eldoc-echo-area-prefer-doc-buffer t) - :hook (nix-mode . eglot-ensure) (go-mode . eglot-ensure)) -(setq make-backup-files nil) + (use-package go-mode :ensure t @@ -281,17 +281,9 @@ org-refile-use-outline-path 'file ;; Otherwise looks weird in variable-pitch-mode org-tags-column 0 - org-log-done 'time) - - (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) - - (org-babel-do-load-languages - 'org-babel-load-languages - '((shell . t))) - - (setq org-capture-templates - '( - ("t" "Todo" + org-log-done 'time + org-capture-templates + '(("t" "Todo" entry (file+headline "~/personal-db/todo.org" "Todo") "* TODO %?\n%i\n%a\n%T\n " :empty-lines 1) @@ -303,6 +295,13 @@ "** %?\n%T" :empty-lines 1))) + (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) + + (org-babel-do-load-languages + 'org-babel-load-languages + '((shell . t))) + + :config (set-face-attribute 'org-block nil :inherit 'fixed-pitch) (set-face-attribute 'org-code nil :inherit 'fixed-pitch) @@ -310,13 +309,9 @@ :hook ((org-mode . auto-save-mode)) - (org-mode . org-indent-mode) - (org-mode . visual-line-mode) - (org-mode . variable-pitch-mode) - (org-agenda-mode . - (lambda () - (add-hook 'auto-save-hook 'org-save-all-org-buffers nil t) - (auto-save-mode)))) + (org-mode . org-indent-mode) + (org-mode . visual-line-mode) + (org-mode . variable-pitch-mode)) ;; Magit |