summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-10-06 20:50:21 +0300
committerMarc Coquand <marc@mccd.space>2024-10-06 20:50:21 +0300
commit0f3303594d5f91f2547faa97383857859af6e121 (patch)
tree4acd99a7bc3059e24783e413bb096df14946670b /emacs
parent988341e2df4951286ee6ba18a51a9268f534d8cf (diff)
downloadbsd-0f3303594d5f91f2547faa97383857859af6e121.tar.gz
bsd-0f3303594d5f91f2547faa97383857859af6e121.tar.bz2
bsd-0f3303594d5f91f2547faa97383857859af6e121.zip
.
Diffstat (limited to 'emacs')
-rw-r--r--emacs37
1 files changed, 16 insertions, 21 deletions
diff --git a/emacs b/emacs
index 3bc2eb3..87d7068 100644
--- a/emacs
+++ b/emacs
@@ -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