Skip to content

Commit 1fd6c03

Browse files
author
Zev Blut
committed
Write the output to a file.
There must be a better way..
1 parent b87b504 commit 1fd6c03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

record.el

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
(defun track-command-executed ()
1515
"Records command executed and keys pressed"
1616
(with-current-buffer rubykaigidribble
17-
(insert (format "cmd: %s keys %s\n" this-command (this-command-keys)))))
17+
(insert (format "cmd: %s keys %s\n" this-command (this-command-keys)))
18+
(write-file rubykaigidribble) ))
1819

1920
(defun track-mode-change ()
2021
"Record the major mode and all minor-modes activated"
2122
(with-current-buffer rubykaigidribble
22-
(insert (format "major-mode: %s\nminor-modes: %s\n\n" major-mode minor-mode-list))))
23+
(insert (format "major-mode: %s\nminor-modes: %s\n\n" major-mode minor-mode-list))
24+
(write-file rubykaigidribble) ))
2325

2426
;; Not sure why, but setting these as a defun only winds up executing
2527
;; the last hook.

0 commit comments

Comments
 (0)