Fork me on GitHub
#emacs
<
2017-03-02
>
qqq10:03:52

I have an rsync command which rsyncs a LOCAL DIR to a REMOTE-DIR now, whenver I save a file in LOCALDIR, I want this rsync command to run

qqq10:03:59

is there a way, either throgh emacs or rsync to keep this going?

pesterhazy10:03:16

you can use dirwatch or similar along with rsync

qqq10:03:13

is dirwatch better than inotify?

qqq10:03:27

google/so just says : use

while inotify .... options
  rsync
done

pesterhazy10:03:36

yeah that seems fair

pesterhazy10:03:42

only works on linux though

qqq10:03:49

and osx too I hope

qqq10:03:17

I now have this weird problem: when I'm ssh-ed into a remote machine (via eshell/tramp), it can't find boot 😞

qqq10:03:37

okay, I have a new problem

qqq10:03:59

after firing up a eshell, how do I send commands to taht eshell? (let ((default-directory ...)) (eshell)) is caushing problems for me

qqq10:03:13

so now I want to do

(eshell)
(exec-cd in eshell)
but eshell-command apparently deosn't do that

qqq11:03:13

it seems that whem I'm using cd /ssh:username@host:/... all my path / env are broken, reflecting the host machine, not the remote machine

qqq13:03:43

in elisp, is there a function for killing a process without a y-n onfirmation ?

qqq14:03:17

I think my problem was that these processes were attached to buffers

qqq14:03:25

and thus when I tried to kill them, the buffer got unhappy

qqq14:03:34

so the solution turned out to be (1) set buffer of process to nil, and (2) then kill the process

qqq21:03:43

Symptom: 1) I have a Org Special Edit buffer. 2) When I try to kill the buffer, I get a "wrong type argument: stringp, nil" -- and I CAN"T KILL THE BUFFER. How to reproduce this: 1) Open a file in buffer X 2) Enter a org-special-edit of a source code block of X (call this new buffer Y) 3) switch to buffer X 4) kill buffer X 5) now, try to kill buffer Y ==> error of "Wrong type argument: stringp, nil" Somehow, if I kill the "root/parent" org-buffer, then I can no longer delete the org-special-edit "child" buffer

qqq21:03:24

okay, got it working, it was kill-buffer-hook that was preventing the buffer from being killed

qqq23:03:38

=========== now that I turned off agressive indent mode, is there a elisp builtin for "indent this entire buffer" ?

qqq23:03:47

I can only find commands for indenting last sexp; I'm using evil + lispy + lispyville