-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmisc.el
42 lines (31 loc) · 939 Bytes
/
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
;;; misc.el --- Misc
;;; Commentary:
;; Miscellaneous customizations
;;; Code:
(use-package emacs
:init
;; Set default background color, to avoid a bright screen shock before loading a Dark Theme is triggered
(set-background-color "#000000")
;; Go straight to scratch buffer on startup
(setq inhibit-startup-message t)
;; No need for ~ files when editing
(setq create-lockfiles nil)
;; "suspend-frame" command, too easy to press it by mistake
(global-unset-key (kbd "C-z"))
;; Changes all yes/no questions to y/n type
(fset 'yes-or-no-p 'y-or-n-p)
;; shell scripts
(setq-default sh-basic-offset 2)
(setq-default sh-indentation 2))
(use-package super-save
:config
(super-save-mode +1)
(setq super-save-remote-files nil))
(use-package which-key
:demand
:init
(setq which-key-idle-delay 0.5) ; Open after .5s instead of 1s
:config
(which-key-mode))
(provide 'misc)
;;; misc.el ends here