From 2c2cdc8cbede4c3156c3fc5cb5157a6718d4806c Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 21 Feb 2017 22:17:03 -0800 Subject: [PATCH 1/5] [XMonad] Add a build file --- dotfiles/xmonad/build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dotfiles/xmonad/build diff --git a/dotfiles/xmonad/build b/dotfiles/xmonad/build new file mode 100755 index 00000000..d11ccbc1 --- /dev/null +++ b/dotfiles/xmonad/build @@ -0,0 +1,16 @@ +#!/bin/sh -eu + +SRC_DIR=~/.xmonad/xmonad.hs + +EXE_NAME=imalison-xmonad + +################################################################################ +# This script will be given a single argument, the path to the +# executable it should produce. +output_file=$1; shift + +################################################################################ +cd $SRC_DIR + +stack build +mv -u `stack path --dist-dir`/build/$EXE_NAME/$EXE_NAME $output_file From a1a0d01f9b89b43b09e08ccdc1e5613a62db48ec Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 22 Feb 2017 17:35:19 -0800 Subject: [PATCH 2/5] [Emacs] Disable tcp server --- dotfiles/emacs.d/README.org | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 73243d96..004d38bb 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1393,6 +1393,13 @@ proced is an top like utility that runs inside of emacs. The following sets auto #+BEGIN_SRC emacs-lisp (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) #+END_SRC +** Use TCP Server +I've had to stop setting this variable, because it causes problems when emacs is +not STARTED in daemon mode. For some reason, even when the server is started, it +is not detected properly by emacsclient by default. +#+BEGIN_SRC emacs-lisp +(setq server-use-tcp nil) +#+END_SRC ** Misc #+BEGIN_SRC emacs-lisp (defvar iedit-toggle-key-default nil) @@ -1410,9 +1417,6 @@ proced is an top like utility that runs inside of emacs. The following sets auto (setq inhibit-startup-message t inhibit-startup-echo-area-message t) -;; This makes it so that emacs --daemon puts its files in ~/.emacs.d/server -(setq server-use-tcp t) - ;; Make buffer names unique. (setq uniquify-buffer-name-style 'forward) From 6776d220689f14f0392d5396d6a9629dffcba102 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 22 Feb 2017 17:36:05 -0800 Subject: [PATCH 3/5] [XMonad] Only raiseNext when pressing class shortcut --- dotfiles/xmonad/xmonad.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 523ea67b..aa368823 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -601,8 +601,7 @@ myBringNextMaybe = bindBringAndRaise :: KeyMask -> KeySym -> X () -> Query Bool -> [((KeyMask, KeySym), X ())] bindBringAndRaise mask sym start query = - [ ((mask, sym), - alreadyFocused >>= ifL restoreThisClassOrMinimizeOtherClasses doRaiseNext) + [ ((mask, sym), doRaiseNext) , ((mask .|. controlMask, sym), myBringNextMaybe start query) , ((mask .|. shiftMask, sym), doRaiseNext) ] From 0aa66cc46d34599f77dc41dfabe26f70dc130203 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 22 Feb 2017 17:36:43 -0800 Subject: [PATCH 4/5] [XMonad] Fix build --- dotfiles/xmonad/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/xmonad/build b/dotfiles/xmonad/build index d11ccbc1..15db2531 100755 --- a/dotfiles/xmonad/build +++ b/dotfiles/xmonad/build @@ -1,6 +1,6 @@ #!/bin/sh -eu -SRC_DIR=~/.xmonad/xmonad.hs +SRC_DIR=~/.xmonad/ EXE_NAME=imalison-xmonad From 8e7e9afd52ad940238fe4999349cdadbeb00a051 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 22 Feb 2017 17:36:52 -0800 Subject: [PATCH 5/5] [Linux] Ignore chrome whether stable or not --- dotfiles/config/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/config/.gitignore b/dotfiles/config/.gitignore index 9a1d4ed3..b6a2d089 100644 --- a/dotfiles/config/.gitignore +++ b/dotfiles/config/.gitignore @@ -11,7 +11,7 @@ /gconf/ /gedit/ /gnome-session/ -/google-chrome +/google-chrome* /gtk-3.0/bookmarks /hexchat /hub