summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index a58aa80..528e650 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -120,6 +120,10 @@
(djcb-gtags-create-or-update)))
;;; PHP
+(defun oni-php-show-outline ()
+ (interactive)
+ (occur "\\(function .*(\\|\\(public\\|private\\|protected\\)\\( static\\)? \\$\\|class \\sw\\)"))
+
(autoload 'php-mode "php-mode" "Major mode for PHP" t)
(setq-default php-mode-warn-if-mumamo-off nil) ; don't warn me about this
(setq php-mode-force-pear t)
@@ -128,7 +132,8 @@
(lambda ()
(c-set-offset 'arglist-intro '+)
(c-set-offset 'arglist-close '0)
- (local-set-key [f6] 'comment-line)))
+ (local-set-key [f6] 'comment-line)
+ (local-set-key [f7] 'oni-php-show-outline)))
(add-php-keywords)
;;; bidi