forked from myTerminal/super-emacs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmisc.el
70 lines (64 loc) · 1.74 KB
/
misc.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
;; System
(if (eq system-type
'darwin)
(add-to-list 'exec-path
"/usr/local/bin"))
;; Startup
(setq initial-buffer-choice
t)
(setq initial-scratch-message
"")
;; Interface
(menu-bar-mode -1)
;; Text editing
(column-number-mode)
(electric-pair-mode)
(show-paren-mode)
(global-hl-line-mode -1)
(setq-default indent-tabs-mode
nil)
(set-default 'cursor-type
'hbar)
(delete-selection-mode 1)
(setq kill-whole-line
t)
(prefer-coding-system 'utf-8-unix)
(setq inhibit-eol-conversion t)
(global-auto-revert-mode 1)
;; Spell-check
(let ((path-to-aspell (locate-file "aspell"
exec-path
exec-suffixes
1)))
(unless (null path-to-aspell)
(progn
(add-to-list 'exec-path (file-name-directory path-to-aspell))
(setq ispell-program-name "aspell")
(setq ispell-extra-args '("--sug-mode=ultra" "--lang=en_US")))))
(add-hook 'text-mode-hook
'flyspell-mode)
;; Package archives and 'customize'
(setq custom-file
(concat se/config-root
"custom.el"))
(require 'package)
(setq package-user-dir
(concat se/config-root
"elpa"))
(setq package--init-file-ensured
t)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/")
t)
(package-initialize)
(unless (package-installed-p 'quelpa)
(with-temp-buffer
(url-insert-file-contents "https://raw.githubusercontent.com/quelpa/quelpa/master/quelpa.el")
(eval-buffer)
(quelpa-self-upgrade)))
;; Misc
(winner-mode t)
(windmove-default-keybindings)
(setq org-startup-indented t
org-cycle-separator-lines 1)
(setq dired-listing-switches "-alh")