emacs - Elisp: simple function to split window and move cursor to new window -
I find it dumb in posting but I do not know why this function does not commensurate:
(defun dc / split-window-below-and-move-cursor () (interactive) (split-window-bottom) (other window 1))
Do I overlook something super clear?
There is an error message here:
The function definition of the symbol is zero: partition-window-bottom
Tried the second file (on a fresh Macs session) and it worked fine. (Bypassing progn
and entering it in (interactive)
did not fix it - I have updated the above code to show this change.)
Update 2: OK, it's just silly the following code works fine but I still can not get the defun
code above to work. If someone thinks, then still it will be very eager to understand.
(global set-key (kbd "----") (lambda (interactive) (partition) -window-bottom) (other window 1)))
progn
, but you interactive
:
is required (defun dc / split-window-below-and-le-cursor () (interactive) (partition-window-bottom) (Other Window 1))
Comments
Post a Comment