-
Notifications
You must be signed in to change notification settings - Fork 15
/
.quickemacs
48 lines (34 loc) · 1.49 KB
/
.quickemacs
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
(prefer-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
(let ((default-directory "~/.emacs.d/"))
(normal-top-level-add-subdirs-to-load-path))
(add-to-list 'load-path "~/.emacs.d")
;; Miscellaneous keyboard and personal preferences
(load-library "misc-config.el")
;; coffee-script
(require 'coffee-mode)
;; javascript
(autoload 'js2-mode "js2-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.json$" . js2-mode))
;; python
(require 'python)
(defun ipdb ()
(interactive)
(insert "import sys; sys.stdout = sys.__stdout__; import ipdb; ipdb.set_trace()"))
(global-set-key (kbd "C-c p d b") 'ipdb)
;; scss
(autoload 'scss-mode "scss-mode")
(add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))
(setq scss-compile-at-save nil)
;; undo tree
(require 'undo-tree)
(global-undo-tree-mode)
;; tabbar
(if (display-graphic-p)
(load-library "tabbar-config.el"))
(if (string= system-type "darwin")
(custom-set-faces
'(default ((t (:background "black" :foreground "white" :inherit nil :stipple nil :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 140 :width normal :family "Ubuntu Mono")))))
(custom-set-faces
'(default ((t (:background "black" :foreground "white" :inherit nil :stipple nil :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 90 :width normal :foundry "unknown" :family "Monospace"))))))