(strokes-unload-hook): Set as a variable with add-hook.
:color-symbols
`(("foreground"
. ,(frame-parameter nil 'foreground-color))))))
- finally do (kill-region (1+ (point)) (point-max)))
+ finally do (unless (eobp)
+ (kill-region (1+ (point)) (point-max))))
(view-buffer "*Strokes List*" nil)
(set (make-local-variable 'view-mode-map)
(let ((map (copy-keymap view-mode-map)))
(strokes-mode -1)
(remove-hook 'kill-emacs-query-functions 'strokes-prompt-user-save-strokes))
+(add-hooks 'strokes-unload-hook 'strokes-unload-hook)
+
(run-hooks 'strokes-load-hook)
(provide 'strokes)