|
|
|
|
@ -3009,6 +3009,21 @@ |
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
|
(require 'word-count) |
|
|
|
|
#+end_src |
|
|
|
|
** try fixing autorevert |
|
|
|
|
This patches the inotify watch to follow symlinks. It is |
|
|
|
|
particulary useful for my setup where stuff is in symlinked |
|
|
|
|
directories (e.g. to tmpfs or to cloud providers) |
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
|
(defun file-notify--add-watch-inotify (_file dir flags) |
|
|
|
|
"Add a watch for FILE in DIR with FLAGS, using inotify." |
|
|
|
|
(inotify-add-watch dir |
|
|
|
|
(append |
|
|
|
|
(and (memq 'change flags) |
|
|
|
|
'(create delete delete-self modify move-self move)) |
|
|
|
|
(and (memq 'attribute-change flags) |
|
|
|
|
'(attrib))) |
|
|
|
|
#'file-notify--callback-inotify)) |
|
|
|
|
#+end_src |
|
|
|
|
** COMMENT gist |
|
|
|
|
Use [[https://github.com/defunkt/gist.el][gist.el]] |
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
|
|