[Emacs] Fix inverted server start condition

This commit is contained in:
2018-06-14 15:16:17 -07:00
parent 4c5625bb7d
commit ef83a4b890
4 changed files with 32 additions and 3 deletions

View File

@@ -1440,7 +1440,7 @@ The file server file for this emacs instance no longer exists.")
(let ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)))
(expand-file-name server-name server-dir)))
(setq server-use-tcp t)
(unless (equal nil (server-running-p)) (server-start))
(when (equal nil (server-running-p)) (server-start))
(run-with-timer 0 60 'imalison:make-main-emacs-server)))
#+END_SRC
** list-environment

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env sh
git config --bool branch.master.sync true
git config --bool branch.master.syncNewFiles true
git branch --set-upstream-to=origin/master

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
cd "$1"
echo "Syncing $1"
git-sync
enable_git_sync.sh
while changedFile=$(inotifywait ./ -r -e modify,move,create,delete --format "%w%f" --exclude '\.git' 2>/dev/null); do
git check-ignore "$changedFile" >> /dev/null || git-sync
done