summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs.d/custom/fcuny-edit.el13
-rw-r--r--zshenv20
2 files changed, 22 insertions, 11 deletions
diff --git a/emacs.d/custom/fcuny-edit.el b/emacs.d/custom/fcuny-edit.el
index fec90ca..8284072 100644
--- a/emacs.d/custom/fcuny-edit.el
+++ b/emacs.d/custom/fcuny-edit.el
@@ -5,10 +5,17 @@
   (global-auto-revert-mode t))
 
 (use-package whitespace
+  :hook ((prog-mode         . fcuny/whitespace-setup)
+         (conf-mode-hook    . fcuny/whitespace-setup)
+         (outline-mode-hook . fcuny/whitespace-setup))
+
   :custom
-  (whitespace-style '(face trailing))
-  (show-trailing-whitespace t)
-  :hook ((prog-mode . whitespace-mode)))
+  (whitespace-style '(face))
+  (show-trailing-whitespace nil)
+
+  :init
+  (defun fcuny/whitespace-setup ()
+    (setq show-trailing-whitespace t)))
 
 (use-package electric-pair-mode
   :commands electric-pair-mode
diff --git a/zshenv b/zshenv
index 60ad8d9..7b988b1 100644
--- a/zshenv
+++ b/zshenv
@@ -17,22 +17,26 @@ alias mv="mv -i"
 alias rm="rm -i"
 alias add="arc diff --draft"
 
+# export PATH="${GOPATH}/bin:$PATH"
+
 # finally, build the path and source a few files
 __add_to_path_if_exists() {
   [ -d "$1" ] && export PATH="$1:$PATH"
 }
 
-__source_file_if_exists() {
-  [ -s "$1" ] && source "$1"
-}
+# __source_file_if_exists() {
+#   [ -s "$1" ] && source "$1"
+# }
 
 __add_to_path_if_exists "${GOPATH}/bin"
-__add_to_path_if_exists "/opt/twitter/opt/go/libexec/bin"
+# # __add_to_path_if_exists "/opt/twitter/opt/go/libexec/bin"
 
-__source_file_if_exists "/opt/google-cloud-sdk/path.zsh.inc"
-__source_file_if_exists "/opt/google-cloud-sdk/completion.zsh.inc"
+# __source_file_if_exists "/opt/google-cloud-sdk/path.zsh.inc"
+# __source_file_if_exists "/opt/google-cloud-sdk/completion.zsh.inc"
 
-# Twitter paths
 __add_to_path_if_exists "${HOME}/workspace/source/dist"
-__add_to_path_if_exists "/opt/twitter/bin"
+__add_to_path_if_exists "/opt/local/bin"
+__add_to_path_if_exists "/opt/local/sbin"
+
 
+export PATH=$PATH:/opt/google-cloud-sdk/bin