From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing buffer mode
Date: Fri, 22 Jul 2022 20:21:53 +0200 [thread overview]
Message-ID: <87pmhxkny6.fsf@dataswamp.org> (raw)
In-Reply-To: N7Z78Qo--3-2@tutanota.com
carlmarcos--- via Users list for the GNU Emacs text editor wrote:
> From studying your code and my original code. Do you
> approve of it, or could it be improved a bit more?
It looks good I guess but I don't think it's a good idea to
begin with, I think it's better to let Emacs handle this for
you, and if it doesn't the way you'd expect or like,
configure it, e.g.
;;; -*- lexical-binding: t -*-
;;
;; this file:
;; https://dataswamp.org/~incal/emacs-init/mode-by-filename.el
(setq auto-mode-alist `(
("\\.bal\\'" . balance-mode)
("\\.cl\\'" . common-lisp-mode)
("\\.dat\\'" . gnuplot-mode)
("\\.gpi\\'" . gnuplot-mode)
("\\.grm\\'" . sml-mode)
("\\.lu\\'" . lua-mode)
("\\.nqp\\'" . perl-mode)
("\\.php\\'" . html-mode)
("\\.pic\\'" . nroff-mode)
("\\.pl\\'" . prolog-mode)
("\\.sed\\'" . conf-mode)
("\\.service\\'" . conf-mode)
("\\.tap\\'" . gcode-mode)
("\\.tex\\'" . latex-mode)
("\\.xr\\'" . conf-xdefaults-mode)
("keys\\'" . conf-mode)
("*" . text-mode)
,@auto-mode-alist) )
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2022-07-22 18:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-20 3:55 Changing buffer mode carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-20 15:50 ` Emanuel Berg
2022-07-21 14:39 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-21 14:50 ` Emanuel Berg
2022-07-21 15:55 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-21 18:41 ` Eduardo Ochs
2022-07-21 19:02 ` tomas
2022-07-22 0:21 ` Emanuel Berg
2022-07-22 3:22 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-22 4:00 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-22 4:13 ` Emanuel Berg
2022-07-22 18:11 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-22 18:21 ` Emanuel Berg [this message]
2022-07-22 18:36 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-21 16:52 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmhxkny6.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.