|
From: | Emanuel Berg |
Subject: | Re: Doing things only in a particular mode |
Date: | Tue, 25 Aug 2015 03:55:43 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Emanuel Berg <embe8573@student.uu.se> writes: > ;; syntax for `if' with single-form branches > > (if (eq major-mode 'mu4e-headers-mode) (do-something) > (do-something-else) ) > > ;; ditto multiple-form branches > > (if (eq major-mode 'mu4e-headers-mode) > (progn > (do-something-step-1) > (do-something-step-2) ) > (progn > (else-do-this-step-1) > ;; ... > (else-do-this-step-n) )) Maybe "syntax" is stretching it for the last example. Let's say it is one way of doing it, a way that is common and not bad. But actually you can put whatever you want there that makes sense. -- underground experts united http://user.it.uu.se/~embe8573
[Prev in Thread] | Current Thread | [Next in Thread] |