diff options
| author | Simeon Simeonov | 2015-02-04 21:41:42 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2015-02-04 21:41:42 +0100 |
| commit | 897eee81de8b3f6adf0165f50e95600a7b89c20c (patch) | |
| tree | 5ee19c07c40e822e15a6443e5db5601c28913454 /.emacs | |
| parent | 9a46567eb167e5aef4b2e760c5d6bdc4fe1ba06a (diff) | |
Standalone lisp and snippet repo
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 30 |
1 files changed, 19 insertions, 11 deletions
| @@ -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) |
