aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-16 22:32:11 +0200
committerGravatar Tom Willemse2016-10-16 22:32:32 +0200
commit36c8b991eeaa75ac2572faff2c4ce58b426a1620 (patch)
treec0d647864818567b499add5dbcd8c8b5bf020887 /emacs
parent01a358e8315f8cf416fed80cba6628ad53454b12 (diff)
downloadnew-dotfiles-36c8b991eeaa75ac2572faff2c4ce58b426a1620.tar.gz
new-dotfiles-36c8b991eeaa75ac2572faff2c4ce58b426a1620.zip
Make sure init files have unique names
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org12
-rw-r--r--emacs/.emacs.d/init/oni-dired-init.org (renamed from emacs/.emacs.d/init/dired-init.org)0
-rw-r--r--emacs/.emacs.d/init/oni-ediff-init.org (renamed from emacs/.emacs.d/init/ediff-init.org)0
-rw-r--r--emacs/.emacs.d/init/oni-js-mode-init.org (renamed from emacs/.emacs.d/init/js-mode-init.org)0
-rw-r--r--emacs/.emacs.d/init/oni-magit-init.org (renamed from emacs/.emacs.d/init/magit-init.org)0
-rw-r--r--emacs/.emacs.d/init/oni-php-mode-init.org (renamed from emacs/.emacs.d/init/php-mode-init.org)6
-rw-r--r--emacs/.emacs.d/init/oni-sh-mode-init.org (renamed from emacs/.emacs.d/init/sh-mode-init.org)0
7 files changed, 12 insertions, 6 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 4e79fb0..39cdc45 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -697,21 +697,21 @@ To start off, first I need to enable lexical binding.
errors.
#+BEGIN_SRC emacs-lisp
- (with-eval-after-load 'js (load "js-mode-init"))
+ (with-eval-after-load 'js (load "oni-js-mode-init"))
#+END_SRC
- [[file:init/php-mode-init.org][php-mode]] :: I use PHP mode for files that only contain PHP code,
no HTML or anything.
#+BEGIN_SRC emacs-lisp
- (with-eval-after-load 'php-mode (load "php-mode-init"))
+ (with-eval-after-load 'php-mode (load "oni-php-mode-init"))
#+END_SRC
- [[file:init/sh-mode-init.org][sh-mode]] :: Used for most types of shell scripting (bash, zsh,
etc.).
#+BEGIN_SRC emacs-lisp
- (with-eval-after-load 'sh-mode (load "sh-mode-init"))
+ (with-eval-after-load 'sh-mode (load "oni-sh-mode-init"))
#+END_SRC
** Emacs lisp mode
@@ -932,20 +932,20 @@ To start off, first I need to enable lexical binding.
enough /yet/.
#+BEGIN_SRC emacs-lisp
- (with-eval-after-load 'dired (load "dired-init"))
+ (with-eval-after-load 'dired (load "oni-dired-init"))
#+END_SRC
- [[file:init/magit-init.org][Magit]] :: The Emacs git interface. By now I think I may know magit
better than the git cli.
#+BEGIN_SRC emacs-lisp
- (with-eval-after-load 'magit (load "magit-init"))
+ (with-eval-after-load 'magit (load "oni-magit-init"))
#+END_SRC
- [[file:init/ediff-init.org][Ediff]] :: A reall diff application.
#+BEGIN_SRC emacs-lisp
- (with-eval-after-load 'ediff (load "ediff-init"))
+ (with-eval-after-load 'ediff (load "oni-ediff-init"))
#+END_SRC
** Gnus
diff --git a/emacs/.emacs.d/init/dired-init.org b/emacs/.emacs.d/init/oni-dired-init.org
index 8966d71..8966d71 100644
--- a/emacs/.emacs.d/init/dired-init.org
+++ b/emacs/.emacs.d/init/oni-dired-init.org
diff --git a/emacs/.emacs.d/init/ediff-init.org b/emacs/.emacs.d/init/oni-ediff-init.org
index 588a605..588a605 100644
--- a/emacs/.emacs.d/init/ediff-init.org
+++ b/emacs/.emacs.d/init/oni-ediff-init.org
diff --git a/emacs/.emacs.d/init/js-mode-init.org b/emacs/.emacs.d/init/oni-js-mode-init.org
index e28e84d..e28e84d 100644
--- a/emacs/.emacs.d/init/js-mode-init.org
+++ b/emacs/.emacs.d/init/oni-js-mode-init.org
diff --git a/emacs/.emacs.d/init/magit-init.org b/emacs/.emacs.d/init/oni-magit-init.org
index 217d45c..217d45c 100644
--- a/emacs/.emacs.d/init/magit-init.org
+++ b/emacs/.emacs.d/init/oni-magit-init.org
diff --git a/emacs/.emacs.d/init/php-mode-init.org b/emacs/.emacs.d/init/oni-php-mode-init.org
index 0b425fe..17b6ce7 100644
--- a/emacs/.emacs.d/init/php-mode-init.org
+++ b/emacs/.emacs.d/init/oni-php-mode-init.org
@@ -43,3 +43,9 @@ Load a PHP-specific completion back-end when company mode is loaded.
(require 'company-php)
(add-to-list 'company-backends 'company-ac-php-backend))
#+END_SRC
+
+Enable ggtags-mode for tags browsing with global.
+
+#+BEGIN_SRC emacs-lisp
+ (add-hook 'php-mode-hook 'ggtags-mode)
+#+END_SRC
diff --git a/emacs/.emacs.d/init/sh-mode-init.org b/emacs/.emacs.d/init/oni-sh-mode-init.org
index 6a9f394..6a9f394 100644
--- a/emacs/.emacs.d/init/sh-mode-init.org
+++ b/emacs/.emacs.d/init/oni-sh-mode-init.org