about summary refs log tree commit diff
path: root/modules/workstation/emacs/default.el
blob: 3806211c79705fb2a2a5b4ee62f0e30481e6d89c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; 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))

;;; Filesystem locations ;;;
(setq user-emacs-directory
      (concat (file-name-as-directory (getenv "XDG_DATA_HOME")) "emacs"))

;;; 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)