-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs-work
49 lines (37 loc) · 1.39 KB
/
emacs-work
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
(color-theme-select)
;(color-theme-deep-blue)
(load "~/.emacs.d/color-theme-tango.el")
(color-theme-tango)
(setq viper-mode t)
(require 'viper)
(setq make-backup-files nil)
(require 'git)
(require 'git-blame)
;use python-mode provided by Python instead of Emacs default
(autoload 'python-mode "python-mode.el" "Python mode." t)
(set-frame-width (selected-frame) 120)
(setq auto-save-default nil)
;adds javascript-mode
(load "~/.emacs.d/js/javascript.el")
(add-to-list 'auto-mode-alist '("\\.js$" . javascript-mode))
;loads nxhtml, which includes support for multiple major modes
;and activates django support for html files
(load "~/.emacs.d/nxhtml/autostart.el")
(setq mumamo-background-colors nil)
(add-to-list 'auto-mode-alist '("\\.html$" . django-html-mumamo-mode))
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "pyflakes" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pyflakes-init)))
(add-hook 'python-mode-hook 'flymake-mode)
;give access to Gnome clipboard
(global-set-key [f5] 'clipboard-kill-ring-save)
(global-set-key [f6] 'clipboard-yank)
;fixes problem where shell tries to use less (e.g., git log)
(setenv "PAGER" "/bin/cat")