about summary refs log tree commit diff
path: root/modules/workstation/emacs/init.el
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-08-13 19:08:01 +0000
committerAlyssa Ross <hi@alyssa.is>2020-08-15 18:21:25 +0000
commit7bdac978d5a63494d0f48b42b37e4f791e0c207d (patch)
treeec9d4c0ef347e16a810ab923a0e12442b3515273 /modules/workstation/emacs/init.el
parent8914aa6ec251920cc6367938bc02e3e4dfd42aa8 (diff)
downloadnixlib-7bdac978d5a63494d0f48b42b37e4f791e0c207d.tar
nixlib-7bdac978d5a63494d0f48b42b37e4f791e0c207d.tar.gz
nixlib-7bdac978d5a63494d0f48b42b37e4f791e0c207d.tar.bz2
nixlib-7bdac978d5a63494d0f48b42b37e4f791e0c207d.tar.lz
nixlib-7bdac978d5a63494d0f48b42b37e4f791e0c207d.tar.xz
nixlib-7bdac978d5a63494d0f48b42b37e4f791e0c207d.tar.zst
nixlib-7bdac978d5a63494d0f48b42b37e4f791e0c207d.zip
modules/emacs: move init file to XDG_CONFIG_HOME
early-init.el has to be here anyway, so init.el might as well be too,
for symmetry.
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r--modules/workstation/emacs/init.el26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
new file mode 100644
index 000000000000..187f894764e2
--- /dev/null
+++ b/modules/workstation/emacs/init.el
@@ -0,0 +1,26 @@
+;;; UI customization ;;;
+(menu-bar-mode -1)
+(scroll-bar-mode -1)
+(tool-bar-mode -1)
+(setq-default truncate-lines t)
+
+;; <102 or >109 will make Ioveska look squished rather than tall,
+;; narrow, and beautiful.
+(set-face-attribute 'default nil :height 104)
+
+;;; Major modes ;;;
+(add-to-list 'auto-mode-alist (cons "\\.adoc\\'" 'adoc-mode))
+
+;;; ispell ;;;
+;; System locale is Esperanto, but I write in English much more, and
+;; spelling in Esperanto is easy anyway. ;)
+(setq ispell-dictionary "english")
+
+;;; Magit ;;;
+(setq magit-delete-by-moving-to-trash delete-by-moving-to-trash)
+
+;;; Rainbow Delimiters ;;;
+(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
+
+;;; Rust ;;;
+(add-hook 'rust-mode-hook (lambda () (setq indent-tabs-mode nil)))