-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.el
55 lines (46 loc) · 1.73 KB
/
defaults.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
(setq backup-inhibited t) ;; Disable backup
(setq auto-save-default nil) ;; Disable auto save
(setq visible-bell 1) ;; Visual bell instead of annoying bell
(setq create-lockfiles nil) ;; Prevent from creating temporary files while file is not saved which conflict with Ember live reload
(setq custom--inhibit-theme-enable nil)
(setq confirm-kill-emacs 'y-or-n-p)
;;(setq default-directory "~/")
;;(setq command-line-default-directory "~/")
(setq-default indent-tabs-mode nil)
(setq c-indent-level 2)
(setq cssm-indent-level 4)
(setq cssm-newline-before-closing-bracket t)
(setq cssm-indent-function #'cssm-c-style-indenter)
(setq cssm-mirror-mode nil)
(setq css-indent-offset 2)
(setq js-indent-level 2)
(setq web-mode-markup-indent-offset 2)
(setq typescript-indent-level 2)
;; utf-8 setups
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
;; Avoid emacs to insert utf8 comment in ruby-mode
(setq ruby-insert-encoding-magic-comment 1)
(defun my-web-mode-hook ()
"Hooks for Web mode."
(setq web-mode-markup-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 2)
(setq web-mode-indent-style 2)
)
(add-hook 'web-mode-hook 'my-web-mode-hook)
;; (setq js-switch-indent-offset 2)
;; (setq js2-indent-switch-body t)
;; (symbol-value 'js-switch-indent-offset)
;; Change meta to apple command key
(setq mac-command-modifier 'meta)
(setq mac-option-modifier 'none)
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
(ido-mode t)
(put 'downcase-region 'disabled nil)
(put 'dired-find-alternate-file 'disabled nil)
;; (setq magit-circleci-token "ca3891145c5738e89c9bf98b035ae180ed5b8721")