[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bundling C-u C-space
From: |
Emanuel Berg |
Subject: |
Re: bundling C-u C-space |
Date: |
Mon, 12 Oct 2015 02:51:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Emanuel Berg <embe8573@student.uu.se> writes:
> Why '(4) and not 4? Use the source, Luke!
> For set-mark-command, it is
>
> (interactive "P")
>
> and not "p".
By the way, here is an even better example which shows
the power of not pi but "p":
(defun window-increase-size (lines)
(interactive "p")
(window-resize nil lines) )
(defun window-decrease-size (lines)
(interactive "p")
(window-resize nil (* -1 lines) ))
(nil = current window!)
After you bind these to keystrokes, you can brute
hammer them keys until the window is of the right
size, *or* you can be mindful Jedi Master Kublai Khan
and shamanize exactly how many lines are needed, and
then hammer (or caress rather) that into action as the
prefix argument! You see? Poet and killer!
--
underground experts united
http://user.it.uu.se/~embe8573
Re: bundling C-u C-space, Emanuel Berg, 2015/10/11
- Re: bundling C-u C-space,
Emanuel Berg <=