-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows.emacs
162 lines (138 loc) · 6.31 KB
/
Windows.emacs
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
(server-start)
(load "dlgopen")
(global-set-key "\C-o" 'dlgopen-open-files)
(recentf-mode)
(add-to-list 'exec-path "C:/Program Files (x86)/Aspell/bin/")
(setq ispell-program-name "aspell")
(setq ispell-personal-dictionary "C:/Program Files (x86)/Aspell/dict")
(require 'ispell)
(global-set-key (kbd "<f8>") 'ispell-word)
(global-set-key (kbd "C-<f8>") 'flyspell-mode)
(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.
'(aldor-interactive-echo-phrase t)
'(aldor-toplevel-startup-code (quote ("#include \"basicmath\"")))
'(case-fold-search t)
'(cua-mode t nil (cua-base))
'(current-language-environment "Latin-9")
'(default-input-method "latin-9-prefix")
'(global-font-lock-mode t nil (font-lock))
'(transient-mark-mode t))
(custom-set-faces
;; Emacs Theme
'(default ((t (:foreground "white" :background "DarkSlateGray"))))
'(font-lock-comment-face ((t (:foreground "green2"))))
'(font-lock-doc-string-face ((t (:foreground "Coral"))) t)
'(font-lock-function-name-face ((t (:foreground "yellow"))))
'(font-lock-keyword-face ((t (:foreground "aquamarine"))))
'(font-lock-preprocessor-face ((t (:italic nil :foreground "CornFlowerBlue"))))
'(font-lock-reference-face ((t (:foreground "DodgerBlue"))))
'(font-lock-string-face ((t (:foreground "Coral"))))
'(font-lock-type-face ((t (:foreground "#9290ff"))))
'(font-lock-variable-name-face ((t (:foreground "orange"))))
'(isearch ((t (:foreground "black" :background "yellow"))))
'(list-mode-item-selected ((t (:background "gray68"))) t)
'(paren-match ((t (:background "darkseagreen4"))) t)
'(show-paren-match ((((class color)) (:foreground "black" :background "yellow"))))
'(show-paren-mismatch ((((class color)) (:foreground "white" :background "red"))))
'(widget-field ((((class grayscale color) (background light)) (:background "DarkBlue")))))
(setq default-frame-alist (append (list
'(width . 100) ; Width set to 100 characters
'(height . 60)) ; Height set to 60 lines
default-frame-alist))
(setq initial-frame-alist '((top . 5) (left . 5)))
(set-cursor-color "green") ;to set the cursor color
(set-scroll-bar-mode 'right)
;; Packages
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
;; Maple
(autoload 'maplev-mode "maplev" "Maple editing mode" t)
(setq
auto-mode-alist (cons (cons (concat "\\." (regexp-opt '("mpl" "tst" "mm" "mi" "input") t)
"$")
'maplev-mode)
auto-mode-alist)
maplev-copyright-owner "Behzad Samadi" ; this is for applying copyrights to Maple code you create
maplev-default-release "17"
maplev-executable-alist
'(
("17" . ("cmaple" nil "mint")))
maplev-mint-query nil
maplev-description-quote-char ?\"
)
;; pandoc
(load "pandoc-mode")
(add-hook 'markdown-mode-hook 'turn-on-pandoc)
;; TeX
'(TeX-PDF-mode t)
'(TeX-bar-LaTeX-buttons (quote (new-file open-file dired kill-buffer save-buffer undo cut copy paste search-forward [separator nil] latex next-error view bibtex clean nil)))
'(TeX-source-correlate-method (quote synctex))
'(TeX-source-correlate-mode t)
'(TeX-view-program-list (quote (("Sumatra PDF" ("\"C:/Program Files (x86)/GNU Emacs 24.3/bin/SumatraPDF.exe\" -reuse-instance" (mode-io-correlate " -forward-search %b %n") " %o")))))
'(TeX-view-program-selection (quote (((output-dvi style-pstricks) "dvips and start") (output-dvi "Yap") (output-pdf "Sumatra PDF") (output-html "start"))))
;; AUCTeX
(require 'tex)
'(bib-file "C:/Users/bsamadi/Maple/bsamadi_windows/projects/Honda/Honda.bib")
;; Org Mode
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(setq-default TeX-master t)
(setq reftex-default-bibliography
(quote
("Y:/maple/Honda/Honda.bib")))
(defun na-org-mode-reftex-setup ()
(interactive)
(load-library "reftex")
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all)))
(add-hook 'org-mode-hook 'na-org-mode-reftex-setup)
(require 'org-latex)
(unless (boundp 'org-latex-classes)
(setq org-latex-classes nil))
(add-to-list 'org-latex-classes
'("article"
"\\documentclass{article}
[NO-DEFAULT-PACKAGES]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(add-to-list 'org-latex-classes
'("report"
"\\documentclass{report}
[NO-DEFAULT-PACKAGES]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(add-to-list 'org-latex-classes
'("amsbook"
"\\documentclass{amsbook}
[NO-DEFAULT-PACKAGES]"
; ("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
)
'(org-latex-pdf-process (quote ("pdflatex -interaction nonstopmode -output-directory %o %f"
"bibtex %b"
"pdflatex -interaction nonstopmode -output-directory %o %f"
"pdflatex -interaction nonstopmode -output-directory %o %f")))
'(org-latex-to-pdf-process (quote ("pdflatex -interaction nonstopmode -output-directory %o %f"
"bibtex %b"
"pdflatex -interaction nonstopmode -output-directory %o %f"
"pdflatex -interaction nonstopmode -output-directory %o %f")))
(defun org-latex-no-toc (depth)
(when depth
(format "%% Org-mode is exporting headings to %s levels.\n"
depth)))
(setq org-latex-format-toc-function 'org-latex-no-toc)