The actual error you see is that you incorrectly specified a global key set, namely a function call. Do you want to:
(global-set-key (kbd "CSe") '(lambda () (revert-buffer ttt)))
In fact, you appreciated funcall when your .emacs loaded, which caused the error.
Then, to get all this, you can create a command, for example:
(defun call-something-on-current-buffers-file () "run a command on the current file and revert the buffer" (interactive) (shell-command (format "/home/tjackson/bin/dummy.sh %s" (shell-quote-argument (buffer-file-name)))) (revert-buffer ttt)) (global-set-key (kbd "CSe") 'call-something-on-current-buffers-file)
Obviously configure the command and add error checking if you want.
Trey jackson
source share