-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.el
43 lines (39 loc) · 2.41 KB
/
custom.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
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (sanityinc-tomorrow-night)))
'(custom-safe-themes
(quote
("06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" default)))
'(org-startup-truncated nil)
'(package-selected-packages
(quote
(mu4e org-plus-contrib org-contrib-plus flycheck solidity-mode sql-indent pip-requirements css-eldoc less-css-mode scss-mode sass-mode mmm-mode rainbow-mode tagedit yasnippet yagist ws-butler whole-line-or-region whitespace-cleanup-mode volatile-highlights unfill undo-tree switch-window smex smarty-mode smartparens rainbow-delimiters php-mode pandoc-mode page-break-lines ox-pandoc ox-gfm org-pomodoro multiple-cursors move-dup markdown-mode magit-gh-pulls json-mode js-comint iedit idomenu ido-completing-read+ highlight-symbol highlight-escape-sequences helm-swoop helm-gtags guide-key gitignore-mode github-clone github-browse-file gitconfig-mode git-timemachine git-messenger fullframe fill-column-indicator expand-region duplicate-thing dtrt-indent diminish csv-mode color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized coffee-mode clean-aindent-mode bug-reference-github browse-kill-ring auto-complete anzu ace-jump-mode ac-js2))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;;(eval-after-load "js2-mode"
;; '(progn
;; (setq-default js2-basic-offset 4)
;;))
;;http://stackoverflow.com/a/803828
(desktop-save-mode 1)
; http://emacswiki.org/emacs/AutoIndentation#toc2
;;; Indentation for python
;; Ignoring electric indentation
(defun electric-indent-ignore-python (char)
"Ignore electric indentation for python-mode"
(if (equal major-mode 'python-mode)
'no-indent
nil))
(add-hook 'electric-indent-functions 'electric-indent-ignore-python)
;; Enter key executes newline-and-indent
(defun set-newline-and-indent ()
"Map the return key with `newline-and-indent'"
(local-set-key (kbd "RET") 'newline-and-indent))
(add-hook 'python-mode-hook 'set-newline-and-indent)