summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorSimeon Simeonov2015-10-26 12:08:33 +0100
committerSimeon Simeonov2015-10-26 12:08:33 +0100
commiteb2f8b1a6dccd17e31bc486439bf72ee3e81e050 (patch)
tree178af92fd349ed5ff78569098a2d08049a028462 /.emacs
parentf78074a490a25e6cdce112e4fda4ba6c28ad1751 (diff)
Upgrade php-mode and yasnippet. Introduce which-function support in .emacs
Diffstat (limited to '.emacs')
-rw-r--r--.emacs11
1 files changed, 7 insertions, 4 deletions
diff --git a/.emacs b/.emacs
index fc619f9..c1e37f3 100644
--- a/.emacs
+++ b/.emacs
@@ -48,8 +48,8 @@
48;; Programming section 48;; Programming section
49 49
50;; Indentation 50;; Indentation
51;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) 51(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil)
52(setq-default c-basic-offset 4 tab-width 4) 52;;(setq-default c-basic-offset 4 tab-width 4)
53 53
54;; Default coding style 54;; Default coding style
55(setq c-default-style "bsd") 55(setq c-default-style "bsd")
@@ -57,13 +57,16 @@
57;; Don't attempt to guess the Python-indent 57;; Don't attempt to guess the Python-indent
58(setq python-indent-guess-indent-offset nil) 58(setq python-indent-guess-indent-offset nil)
59 59
60;; Enable which-function-mode for C, C++ and Python
61(setq which-func-modes '(python-mode c-mode c++-mode))
62(which-function-mode t)
60 63
61;; Custom plugins 64;; Custom plugins
62(add-to-list 'load-path "~/.emacs.d/lisp/") 65(add-to-list 'load-path "~/.emacs.d/lisp/")
63 66
64;;PHP 67;;PHP
65(autoload 'php-mode "php-mode" "Mode for editing PHP source files") 68;; (autoload 'php-mode "php-mode" "Mode for editing PHP source files")
66(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) 69;; (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode))
67 70
68;; YAML 71;; YAML
69(require 'yaml-mode) 72(require 'yaml-mode)