elisp - Splitting window in Emacs Lisp function -
I would like to be able to present the file to run a shell command on which I edit and am outputs Shell command output is shown in the window. I am able to define the function that is shown below.
(run the CPP-check buffer on the current file.) (Shell-command Concat "/home/sburke/downloads/cppcheck-1.31/cppcheck" (buffer-file-name))) The only problem is that the output window is not brought The foreground is what I want to do in any way, for window segmentation and output window shown there. Also, do I correctly define the function here in my .emac file or is there a better way?
Any help would be appreciated. Thank you.
Take a look at the documentation for shell-command for the well:
(defun cpp-check () "is coming CP-Czech run buffer to the current file." (shell-command (Conlat / / Home / Sbike / download / Cppcheck-1.31 / cppcheck "(buffer-file-name))" CPP-Czech ")) this creates a new buffer called" CP-Czech "and there The result is divided into the current frame, and the "CP-check" buffer is divided into other wings. Is placed in programming.
Comments
Post a Comment