Commit 6fd1ec3f authored by Flying Solomon's avatar Flying Solomon

added logging for switching emacs buffers

parent d4cf614d
(defun buffer-changes-recorder (change-beg change-end prev-len)
(append-to-file
;(message
;(append-to-file
(message
(format "%s;%s;%s\n"
(buffer-file-name)
(format-time-string "%s")
......@@ -13,8 +13,22 @@
(buffer-substring change-beg change-end))
)
)
nil "~/test.log"
; nil "~/test.log"
)
)
(add-hook 'after-change-functions 'buffer-changes-recorder)
(defun buffer-switchs-recorder ()
;(append-to-file
(message
(format "%s;%s;%s\n"
(buffer-file-name)
(format-time-string "%s")
(format "S;%s;%s" (selected-window) (buffer-name))
)
; nil "~/test.log"
)
)
(add-hook 'buffer-list-update-hook 'buffer-switchs-recorder)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment