-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs_concise
39 lines (28 loc) · 1.3 KB
/
emacs_concise
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
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(custom-set-faces
'(default ((t (:inherit nil :stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight bold :height 161 :width normal :foundry "monotype" :family "Courier New")))))
(define-derived-mode cuda-mode c-mode "CUDA"
"CUDA mode."
(setq c-basic-offset 4))
(add-to-list 'auto-mode-alist '("\\.cu\\'" . cuda-mode))
(global-font-lock-mode t)
(show-paren-mode t)
(global-auto-revert-mode 1)
;;(global-linum-mode 1)
(define-key global-map (kbd "RET") 'newline-and-indent)
;;(setq gdb-many-windows t)
(setq backup-inhibited t)
(setq column-number-mode t)
(custom-set-variables
'(haskell-mode-hook '(turn-on-haskell-indentation)))
(global-set-key (kbd "<f9>") 'smart-compile)
(setq smart-compile-alist
'(("\\.py\\'"."python %n.py")
("\\.for\\'"."ifort -ffixed-line-length-none %f -o %n.exe")
("\\.f90\\'"."gfortran -fopenmp %f -o a && ./a")
("\\.tex\\'"."pdflatex %f %n")
("\\.cu\\'"."nvcc -arch=sm_52 -o a %f && ./a")))
(setq compilation-read-command nil)