summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
Diffstat (limited to '.emacs')
-rw-r--r--.emacs30
1 files changed, 19 insertions, 11 deletions
diff --git a/.emacs b/.emacs
index 3f7c28b..5ab06e9 100644
--- a/.emacs
+++ b/.emacs
@@ -15,6 +15,10 @@
15;; Your init file should contain only one such instance. 15;; Your init file should contain only one such instance.
16;; If there is more than one, they won't work right. 16;; If there is more than one, they won't work right.
17(custom-set-faces 17(custom-set-faces
18 ;; custom-set-faces was added by Custom.
19 ;; If you edit it by hand, you could mess it up, so be careful.
20 ;; Your init file should contain only one such instance.
21 ;; If there is more than one, they won't work right.
18 '(font-lock-comment-face ((nil (:foreground "red"))))) 22 '(font-lock-comment-face ((nil (:foreground "red")))))
19 23
20;;(setq require-final-newline t) 24;;(setq require-final-newline t)
@@ -32,6 +36,8 @@
32;; Various 36;; Various
33(setq auto-save-default nil) 37(setq auto-save-default nil)
34(setq make-backup-files nil) 38(setq make-backup-files nil)
39(setq display-time-24hr-format t)
40(display-time-mode 1)
35 41
36;; UTF-8 support (legacy workaround for Ubuntu) 42;; UTF-8 support (legacy workaround for Ubuntu)
37(set-default-coding-systems 'utf-8) 43(set-default-coding-systems 'utf-8)
@@ -47,24 +53,26 @@
47;; Default coding style 53;; Default coding style
48(setq c-default-style "bsd") 54(setq c-default-style "bsd")
49 55
50;; yasnippet 56;; Don't attempt to guess the Python-indent
51(yas/initialize) 57(setq python-indent-guess-indent-offset nil)
52;; (setq yas/root-directory '("~/.emacs.d/mysnippets"
53;; "/usr/share/emacs/site-lisp/yasnippet/snippets"))
54;; (mapc 'yas/load-directory yas/root-directory)
55(yas/load-directory "~/.emacs.d/mysnippets")
56 58
57 59
58;; Python stuff 60;; Custom plugins
61(add-to-list 'load-path "~/.emacs.d/lisp/")
59 62
60;; Don't attempt to guess the indent 63;;PHP
61(setq python-indent-guess-indent-offset nil) 64(autoload 'php-mode "php-mode" "Mode for editing PHP source files")
65(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode))
62 66
63;; (require 'pymacs) 67;; yasnippet
68(require 'yasnippet)
69(yas-global-mode 1)
70(yas/load-directory "~/.emacs.d/snippets")
71
72;; Python stuff
64;; (pymacs-load "ropemacs" "rope-") 73;; (pymacs-load "ropemacs" "rope-")
65;; (setq ropemacs-enable-autoimport t) 74;; (setq ropemacs-enable-autoimport t)
66 75
67
68;; CUA mode 76;; CUA mode
69;;(cua-mode t) 77;;(cua-mode t)
70;;(setq cua-auto-tabify-rectangles nil) 78;;(setq cua-auto-tabify-rectangles nil)