From 6aef4f4cbd4de6478e2cfa59621adfe104c7a497 Mon Sep 17 00:00:00 2001
From: Don Armstrong <don@donarmstrong.com>
Date: Thu, 27 Dec 2012 15:19:06 -0800
Subject: [PATCH] add zsh modes to everything

---
 .zsh/dircolors                 | 1 +
 .zsh/logging                   | 1 +
 .zsh/rcsstub                   | 1 +
 .zsh/sourcedir                 | 1 +
 .zsh/util                      | 1 +
 .zsh/zlogin/10_shlvl           | 1 +
 .zsh/zlogin/60_mime            | 1 +
 .zsh/zlogout/90_sudo           | 1 +
 .zsh/zlogout/99_cls            | 1 +
 .zsh/zprofile/00_ulimit        | 1 +
 .zsh/zprofile/10_locale        | 1 +
 .zsh/zprofile/40_zcompile      | 1 +
 .zsh/zshenv/00_rdirs           | 1 +
 .zsh/zshenv/01_fpath           | 1 +
 .zsh/zshenv/01_path            | 1 +
 .zsh/zshenv/10_zvars           | 1 +
 .zsh/zshenv/30_codeinput       | 1 +
 .zsh/zshenv/40_editor          | 1 +
 .zsh/zshenv/45_postgresql      | 1 +
 .zsh/zshenv/80_debian          | 1 +
 .zsh/zshenv/80_pagers          | 1 +
 .zsh/zshenv/80_texmf           | 1 +
 .zsh/zshrc/00_autoload         | 1 +
 .zsh/zshrc/00_recompile        | 1 +
 .zsh/zshrc/00_varsetup         | 1 +
 .zsh/zshrc/19_dircolors        | 1 +
 .zsh/zshrc/20_compsys          | 1 +
 .zsh/zshrc/20_dirhashes        | 1 +
 .zsh/zshrc/30_aliases          | 1 +
 .zsh/zshrc/30_aliases_bugfix   | 1 +
 .zsh/zshrc/39_tempfuncs        | 1 +
 .zsh/zshrc/60_vcsprompt        | 1 +
 .zsh/zshrc/64_ssh              | 1 +
 .zsh/zshrc/75_vcsinfo          | 1 +
 .zsh/zshrc/79_bindkeys         | 1 +
 .zsh/zshrc/80_abbreviations    | 1 +
 .zsh/zshrc/80_history          | 1 +
 .zsh/zshrc/80_inplacemkdir     | 1 +
 .zsh/zshrc/80_zle              | 1 +
 .zsh/zshrc/85_prompt           | 1 +
 .zsh/zshrc/85_termfonts        | 1 +
 .zsh/zshrc/85_xtermtitle       | 1 +
 .zsh/zshrc/95_fortune.disabled | 1 +
 .zsh/zshrc/95_watch            | 1 +
 .zsh/zshrc/99_TODO             | 1 +
 .zsh/zshrc/99_hookfunctions    | 1 +
 46 files changed, 46 insertions(+)

diff --git a/.zsh/dircolors b/.zsh/dircolors
index 82232b0..c2cd451 100644
--- a/.zsh/dircolors
+++ b/.zsh/dircolors
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # dircolors
 #
 # colours for directory listings for normal people
diff --git a/.zsh/logging b/.zsh/logging
index ad4c54a..21b75a1 100644
--- a/.zsh/logging
+++ b/.zsh/logging
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # logging
 #
 # Logging abilities for the shell initialisation scripts
diff --git a/.zsh/rcsstub b/.zsh/rcsstub
index 2138ef0..10e652a 100644
--- a/.zsh/rcsstub
+++ b/.zsh/rcsstub
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # rcsstub
 #
 # Stub for all .z* files; actual content comes from a directory
diff --git a/.zsh/sourcedir b/.zsh/sourcedir
index 40f1aa0..c7eb5cd 100644
--- a/.zsh/sourcedir
+++ b/.zsh/sourcedir
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # sourcedir
 #
 # Defines helper function to source files in a directory
diff --git a/.zsh/util b/.zsh/util
index ce6f9fc..7021b3f 100644
--- a/.zsh/util
+++ b/.zsh/util
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # util
 #
 # Miscellaneous utility functions
diff --git a/.zsh/zlogin/10_shlvl b/.zsh/zlogin/10_shlvl
index f290a1f..a728102 100644
--- a/.zsh/zlogin/10_shlvl
+++ b/.zsh/zlogin/10_shlvl
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogin/10_shlvl
 #
 # reset SHLVL for login shells
diff --git a/.zsh/zlogin/60_mime b/.zsh/zlogin/60_mime
index 306ac27..8e4a8e3 100644
--- a/.zsh/zlogin/60_mime
+++ b/.zsh/zlogin/60_mime
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogin/60_mime
 #
 # set up the shell's mime support
diff --git a/.zsh/zlogout/90_sudo b/.zsh/zlogout/90_sudo
index 666dfd4..af9ab61 100644
--- a/.zsh/zlogout/90_sudo
+++ b/.zsh/zlogout/90_sudo
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogout/90_sudo
 #
 # Invalidates any existing sudo sessions
diff --git a/.zsh/zlogout/99_cls b/.zsh/zlogout/99_cls
index 8a11e82..5b5f7fe 100644
--- a/.zsh/zlogout/99_cls
+++ b/.zsh/zlogout/99_cls
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogout/99_cls
 #
 # clear the screen
diff --git a/.zsh/zprofile/00_ulimit b/.zsh/zprofile/00_ulimit
index 336fe1e..985d006 100644
--- a/.zsh/zprofile/00_ulimit
+++ b/.zsh/zprofile/00_ulimit
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/00_ulimit
 #
 # sets process limits
diff --git a/.zsh/zprofile/10_locale b/.zsh/zprofile/10_locale
index 953debf..1813628 100644
--- a/.zsh/zprofile/10_locale
+++ b/.zsh/zprofile/10_locale
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/10_locale
 #
 # Defines locale settings
diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile
index eb6abb5..fab7d7b 100644
--- a/.zsh/zprofile/40_zcompile
+++ b/.zsh/zprofile/40_zcompile
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogin/40_zcompile
 #
 # compile zsh snippets
diff --git a/.zsh/zshenv/00_rdirs b/.zsh/zshenv/00_rdirs
index 464a320..035ac57 100644
--- a/.zsh/zshenv/00_rdirs
+++ b/.zsh/zshenv/00_rdirs
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/00_rdirs
 #
 # Assigns paths to related directories to a number of variables 
diff --git a/.zsh/zshenv/01_fpath b/.zsh/zshenv/01_fpath
index 8e3a5a4..20b1237 100644
--- a/.zsh/zshenv/01_fpath
+++ b/.zsh/zshenv/01_fpath
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/00_fpath
 #
 # Adds local functions directory to $fpath
diff --git a/.zsh/zshenv/01_path b/.zsh/zshenv/01_path
index e4e81fa..0a68895 100644
--- a/.zsh/zshenv/01_path
+++ b/.zsh/zshenv/01_path
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/00_path
 #
 # Adds custom directories to the $PATH
diff --git a/.zsh/zshenv/10_zvars b/.zsh/zshenv/10_zvars
index 9bc081f..aec7daa 100644
--- a/.zsh/zshenv/10_zvars
+++ b/.zsh/zshenv/10_zvars
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/10_zvars
 #
 # set a number of core zsh variables
diff --git a/.zsh/zshenv/30_codeinput b/.zsh/zshenv/30_codeinput
index ad31e69..524c60e 100644
--- a/.zsh/zshenv/30_codeinput
+++ b/.zsh/zshenv/30_codeinput
@@ -1,4 +1,5 @@
 # -*- mode: sh -*-
+# -*- mode: sh -*-
 # fix the code input
 export GTK_IM_MODULE=xim
 export QT_IM_MODULE=xim
diff --git a/.zsh/zshenv/40_editor b/.zsh/zshenv/40_editor
index bc04592..6636c34 100644
--- a/.zsh/zshenv/40_editor
+++ b/.zsh/zshenv/40_editor
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/40_editor
 #
 # set the editor variables
diff --git a/.zsh/zshenv/45_postgresql b/.zsh/zshenv/45_postgresql
index a2ea4b0..ef8e4e5 100644
--- a/.zsh/zshenv/45_postgresql
+++ b/.zsh/zshenv/45_postgresql
@@ -1,4 +1,5 @@
 # -*- mode: sh -*-
+# -*- mode: sh -*-
 
 if [ -e ~/.hide/pg_service.conf ]; then
     export PGSYSCONFDIR="$(eval 'echo' '~/.hide')";
diff --git a/.zsh/zshenv/80_debian b/.zsh/zshenv/80_debian
index cfe8468..2be03a0 100644
--- a/.zsh/zshenv/80_debian
+++ b/.zsh/zshenv/80_debian
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/80_debian
 #
 # set a number of default variables related to Debian
diff --git a/.zsh/zshenv/80_pagers b/.zsh/zshenv/80_pagers
index 5f3fbe4..587249c 100644
--- a/.zsh/zshenv/80_pagers
+++ b/.zsh/zshenv/80_pagers
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/80_pagers
 #
 # set a number of default variables related to pagers
diff --git a/.zsh/zshenv/80_texmf b/.zsh/zshenv/80_texmf
index ff302d5..f63ba88 100644
--- a/.zsh/zshenv/80_texmf
+++ b/.zsh/zshenv/80_texmf
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/80_texmf
 #
 # set a number of default variables related to texmf
diff --git a/.zsh/zshrc/00_autoload b/.zsh/zshrc/00_autoload
index 92b7c07..28a1e64 100644
--- a/.zsh/zshrc/00_autoload
+++ b/.zsh/zshrc/00_autoload
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_autoload
 #
 # Autoload available functions
diff --git a/.zsh/zshrc/00_recompile b/.zsh/zshrc/00_recompile
index 24e51b6..fedc0ed 100644
--- a/.zsh/zshrc/00_recompile
+++ b/.zsh/zshrc/00_recompile
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_zrecompile
 #
 # recompile zsh snippets, if necessary
diff --git a/.zsh/zshrc/00_varsetup b/.zsh/zshrc/00_varsetup
index 09aa367..484a085 100644
--- a/.zsh/zshrc/00_varsetup
+++ b/.zsh/zshrc/00_varsetup
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_varsetup
 #
 # set up global variables used by the shell
diff --git a/.zsh/zshrc/19_dircolors b/.zsh/zshrc/19_dircolors
index 057ffa6..024d3fa 100644
--- a/.zsh/zshrc/19_dircolors
+++ b/.zsh/zshrc/19_dircolors
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/19_dircolors
 #
 # Load dircolors database
diff --git a/.zsh/zshrc/20_compsys b/.zsh/zshrc/20_compsys
index 8b180ff..1826511 100644
--- a/.zsh/zshrc/20_compsys
+++ b/.zsh/zshrc/20_compsys
@@ -1,4 +1,5 @@
 # -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/20_compsys
 #
 # Configures the completions system
diff --git a/.zsh/zshrc/20_dirhashes b/.zsh/zshrc/20_dirhashes
index ea1da70..c07eff5 100644
--- a/.zsh/zshrc/20_dirhashes
+++ b/.zsh/zshrc/20_dirhashes
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/20_dirhashes
 #
 # populate some hashes for commonly used directories
diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases
index 35767e2..b09f4b1 100644
--- a/.zsh/zshrc/30_aliases
+++ b/.zsh/zshrc/30_aliases
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/30_aliases
 #
 # Defines command shortcuts
diff --git a/.zsh/zshrc/30_aliases_bugfix b/.zsh/zshrc/30_aliases_bugfix
index c106d41..7ff5c24 100644
--- a/.zsh/zshrc/30_aliases_bugfix
+++ b/.zsh/zshrc/30_aliases_bugfix
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # fix until #480889 is fixed
 
 # remove the compiled file before it gets sourced
diff --git a/.zsh/zshrc/39_tempfuncs b/.zsh/zshrc/39_tempfuncs
index d3391f6..173dffb 100644
--- a/.zsh/zshrc/39_tempfuncs
+++ b/.zsh/zshrc/39_tempfuncs
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/40_tempfuncs
 #
 # Helper functions to create temporary files and directories
diff --git a/.zsh/zshrc/60_vcsprompt b/.zsh/zshrc/60_vcsprompt
index 764ccef..b5ab68c 100644
--- a/.zsh/zshrc/60_vcsprompt
+++ b/.zsh/zshrc/60_vcsprompt
@@ -1,4 +1,5 @@
 # -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/60_vcsprompt
 #
 # Make git information available to the prompt
diff --git a/.zsh/zshrc/64_ssh b/.zsh/zshrc/64_ssh
index 981e6a0..449d11b 100644
--- a/.zsh/zshrc/64_ssh
+++ b/.zsh/zshrc/64_ssh
@@ -1,4 +1,5 @@
 # -*- mode: sh -*-
+# -*- mode: sh -*-
 
 # set up ssh-agent
 if which ssh-agent >/dev/null && [ -d ~/.ssh ] &&  \
diff --git a/.zsh/zshrc/75_vcsinfo b/.zsh/zshrc/75_vcsinfo
index e4339fd..d39e800 100644
--- a/.zsh/zshrc/75_vcsinfo
+++ b/.zsh/zshrc/75_vcsinfo
@@ -1,4 +1,5 @@
 # -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/75_vcsinfo
 #
 # Set up vcs_info subsystem
diff --git a/.zsh/zshrc/79_bindkeys b/.zsh/zshrc/79_bindkeys
index 5747a21..67e34aa 100644
--- a/.zsh/zshrc/79_bindkeys
+++ b/.zsh/zshrc/79_bindkeys
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_bindkeys
 #
 # Defines key bindings
diff --git a/.zsh/zshrc/80_abbreviations b/.zsh/zshrc/80_abbreviations
index cae9274..47e383d 100644
--- a/.zsh/zshrc/80_abbreviations
+++ b/.zsh/zshrc/80_abbreviations
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 typeset -Ag abbreviations
 abbreviations=(
   '...'  '../..'
diff --git a/.zsh/zshrc/80_history b/.zsh/zshrc/80_history
index 563ad90..d5d71d2 100644
--- a/.zsh/zshrc/80_history
+++ b/.zsh/zshrc/80_history
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_history
 #
 # Set up command line history functions
diff --git a/.zsh/zshrc/80_inplacemkdir b/.zsh/zshrc/80_inplacemkdir
index 91acd91..103ce1a 100644
--- a/.zsh/zshrc/80_inplacemkdir
+++ b/.zsh/zshrc/80_inplacemkdir
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # from grml
 _inplaceMkDirs() {
     local PATHTOMKDIR
diff --git a/.zsh/zshrc/80_zle b/.zsh/zshrc/80_zle
index a737800..d86a2ce 100644
--- a/.zsh/zshrc/80_zle
+++ b/.zsh/zshrc/80_zle
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_zle
 #
 # Configure the zsh line editor
diff --git a/.zsh/zshrc/85_prompt b/.zsh/zshrc/85_prompt
index 2adad06..7eaf9e2 100644
--- a/.zsh/zshrc/85_prompt
+++ b/.zsh/zshrc/85_prompt
@@ -1,4 +1,5 @@
 # -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/80_prompt
 #
 # Formats the shell prompt
diff --git a/.zsh/zshrc/85_termfonts b/.zsh/zshrc/85_termfonts
index e8a1901..7d3285b 100644
--- a/.zsh/zshrc/85_termfonts
+++ b/.zsh/zshrc/85_termfonts
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_termfonts
 #
 # provide helper methods to increase/decrease fonts from the command line
diff --git a/.zsh/zshrc/85_xtermtitle b/.zsh/zshrc/85_xtermtitle
index 8059ca8..f24b96a 100644
--- a/.zsh/zshrc/85_xtermtitle
+++ b/.zsh/zshrc/85_xtermtitle
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_xtermtitle
 #
 # Fancy setting of the xterm title
diff --git a/.zsh/zshrc/95_fortune.disabled b/.zsh/zshrc/95_fortune.disabled
index fe4102d..0d55df2 100644
--- a/.zsh/zshrc/95_fortune.disabled
+++ b/.zsh/zshrc/95_fortune.disabled
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/95_fortune
 #
 # Prints a fortune cookie to each interactive shell
diff --git a/.zsh/zshrc/95_watch b/.zsh/zshrc/95_watch
index b9b895f..e1a5a84 100644
--- a/.zsh/zshrc/95_watch
+++ b/.zsh/zshrc/95_watch
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/95_watch
 #
 # watch activity of other users
diff --git a/.zsh/zshrc/99_TODO b/.zsh/zshrc/99_TODO
index 2585dbf..fafacd1 100644
--- a/.zsh/zshrc/99_TODO
+++ b/.zsh/zshrc/99_TODO
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/99_TODO
 #
 # All kinds of stuff not yet split to other files
diff --git a/.zsh/zshrc/99_hookfunctions b/.zsh/zshrc/99_hookfunctions
index a8b6388..a355e4f 100644
--- a/.zsh/zshrc/99_hookfunctions
+++ b/.zsh/zshrc/99_hookfunctions
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/99_hookfunctions
 #
 # define hook functions in case the *_functions arrays are not honoured
-- 
2.39.5