commit 9798d2a5fc9dd3bb5ff9e472c7205cdf1c1d35e9
parent 1573647a99a9a98a8b43e31b2c4bcc967c4196c1
Author: dwrz <dwrz@dwrz.net>
Date: Fri, 9 Jun 2023 16:07:48 +0000
Update emacs init
Diffstat:
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/emacs/init.el b/emacs/init.el
@@ -1,12 +1,9 @@
;; C source code variables.
-(setq auto-save-interval 24
+(setq abbrev-mode t
+ auto-save-interval 24
delete-by-moving-to-trash t
echo-keystrokes 0.1
enable-recursive-minibuffers t
- exec-path (append exec-path '("/home/dwrz/.local/bin/"
- "/home/dwrz/.local/share/go/bin/"
- "/home/dwrz/.local/share/node_modules/bin/"
- ))
next-screen-context-lines 5
scroll-conservatively 10000
use-dialog-box nil
@@ -19,7 +16,6 @@
(setq-default fill-column 80
indent-tabs-mode t
require-final-newline t
- shell-file-name (getenv "SHELL")
tab-width 8
truncate-lines nil)
@@ -31,8 +27,11 @@
initial-scratch-message nil
user-mail-address "dwrz@dwrz.net")
+(put 'downcase-region 'disabled nil)
+(put 'upcase-region 'disabled nil)
+
;; Custom
-(setq custom-file "/home/dwrz/.cache/custom.el")
+(setq custom-file "~/.cache/custom.el")
;; FUNCTIONS
@@ -178,7 +177,7 @@
(with-eval-after-load 'go-playground
(setq go-playground-ask-file-name nil
- go-playground-basedir "/home/dwrz/.local/share/go/src/playground/"
+ go-playground-basedir "~/.local/share/go/src/playground/"
go-playground-go-command "GO111MODULE=auto go"
go-playground-init-command "go mod init"))
@@ -341,7 +340,7 @@
"~/projects/src/src.org"
"~/projects/wish/wish.org")
org-archive-location
- "/home/dwrz/org/archive.org::"))))
+ "~/org/archive.org::"))))
(with-eval-after-load 'org-capture
(setq org-capture-templates
@@ -558,7 +557,7 @@
(global-set-key (kbd "C-c u") nil)
(global-set-key (kbd "C-c v") nil)
(global-set-key (kbd "C-c w") 'hydra-windows/body)
-(global-set-key (kbd "C-c x") 'yas-expand)
+(global-set-key (kbd "C-c x") nil)
(global-set-key (kbd "C-c y") nil)
(global-set-key (kbd "C-c z") 'counsel-fzf)
(global-set-key (kbd "C-c #") 'display-line-numbers-mode)
@@ -573,4 +572,3 @@
(global-set-key (kbd "C-x m") 'notmuch)
(global-set-key (kbd "C-x t") 'dwrz-terminal)
(global-set-key (kbd "M-x") 'counsel-M-x)
-(put 'downcase-region 'disabled nil)