[Top][All Lists]

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

Re: Changing buffer mode

From: carlmarcos
Subject: Re: Changing buffer mode
Date: Fri, 22 Jul 2022 20:11:45 +0200 (CEST)

Jul 22, 2022, 04:13 by

> carlmarcos--- via Users list for the GNU Emacs text editor wrote:
>> Have come up with the following [...]
> How did you come up with that?
>From studying your code and my original code.  Do you approve of it, or could 
>it be improved
a bit more?

(defun mode-sweep (mode)
  "Cycle the buffer through three major modes (text, org, normal)."

    (let ( (cseq '("org-mode" "text-mode" "normal-mode")) )
      (completing-read "Mode: " cseq nil t "normal"))))

  (apply (list (intern mode))) )

reply via email to

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