-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacsuserpost
42 lines (34 loc) · 1.56 KB
/
.emacsuserpost
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
;; Start emacs server
;; This is useful if you would want to use only one instance of emacs for all
;; files you open. THis saves some startup time.
;;
;; Especially for windows, this is very useful because it allows for double-clicking
;; a file in the windows explorer and it opens in a running emacs instance.
(when (eq system-type 'windows-nt)
(require 'server)
(unless (server-running-p) (server-start)))
;; Set calendar to european form (dd-mm-yy) - this overrides the default US form
;; (calendar-set-date-style 'european)
;; Maximise window after it starts
(add-to-list 'default-frame-alist '(fullscreen . maximized))
;; Override default theme here
;; (load-theme 'light-blue)
;; For spellchecks, point to hunspell program
;; Make sure your PATH contains the path to hunspell!
;; (setq ispell-program-name "hunspell")
;; (setq ispell-local-dictionary "en_GB")
;; Make sure to automatically enable flyspell mode in all major modes
;; (defun enable-flyspell-mode ()
;; "Enable flyspell-mode."
;; (flyspell-mode 1))
;; (add-hook 'text-mode-hook 'enable-flyspell-mode)
;; (add-hook 'prog-mode-hook 'enable-flyspell-mode)
;; Load all the usual babel language support
;; (org-babel-do-load-languages 'org-babel-load-languages
;; '((ditaa . t)
;; (mermaid . t))
;; )
;; Ditaa allows you to directly embed an ascii art and convert it into
;; png files. A copy of ditaa is included in the tools folder, but
;; the following line needs to be uncommented to set the path to ditaa
;; (setq org-ditaa-jar-path (concat init-file-dir "/tools/ditaa-0.11.0-standalone.jar"))