help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feeling lost without tabs


From: Emanuel Berg
Subject: Re: Feeling lost without tabs
Date: Wed, 23 Jul 2014 04:29:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Robert Thorpe <address@hidden> writes:

> Like I said, Emacs sometimes provides several similar
> functions as a way to provide users with options.
> Often doing that is simpler than using variables.
> The function "reindent-then-newline-and-indent"
> indents the current line, inserts an newline then
> indents the next line.  Nobody is going to run that
> function using M-x, it's there so people can map it
> to a key, normally replacing a default function (such
> as to C-j or RET).  That's why buffer-menu and
> buffer-menu-other-window are present too.

You mean something like this:

(defun do-something-big-or-small (big) ...

Configuration-as-a-function:

(defun do-something-big ()
  (interactive)
  (do-something-big-or-small t) )

(defun do-something-small ()
  (interactive)
  (do-something-big-or-small nil) )

That's OK, of course... (?)

-- 
underground experts united


reply via email to

[Prev in Thread] Current Thread [Next in Thread]