forked from jkitchin/dft-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdft-course-init.el
More file actions
33 lines (25 loc) · 807 Bytes
/
dft-course-init.el
File metadata and controls
33 lines (25 loc) · 807 Bytes
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
;; turn on font-lock mode
(global-font-lock-mode t)
(show-paren-mode 1)
(line-number-mode 1)
;disable backup
(setq backup-inhibited t)
; register python in org-mode
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(python . t)))
; enable prompt-free code running
(setq org-confirm-babel-evaluate nil)
; no extra indentation
(setq org-src-preserve-indentation t)
(setq org-startup-with-inline-images "inlineimages")
; use syntax highlighting in org-file
(setq org-src-fontify-natively t)
; set default :results to output
(setq org-babel-default-header-args
(cons '(:results . "output")
(assq-delete-all :results org-babel-default-header-args)))
; you can further customize by creating a new lisp file and
;uncommenting this line
; (load-file "yourcustom.el")