[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: Appending lists
From: |
Emanuel Berg |
Subject: |
Re: [External] : Re: Appending lists |
Date: |
Sun, 20 Jun 2021 21:50:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
After this discussion, I thought I'd examine my `nconc' once
more and I then realized my use of them resembles a functional
style, while it (nconc) is already destructively doing the
updating, so that's not needed. E.g., this
;; (setq completion-ignored-extensions
;; (nconc completion-ignored-extensions '(".bcf" ".elc" ".run.xml")) )
can be changed into (should be changed, since the above makes
no difference - ?) it can be changed into
(nconc completion-ignored-extensions '(".bcf" ".run.xml"))
(I removed the ".elc" as that seems to be there by default, now.)
Then case 2, same thing, this
;; (let ((modes (list
;; '("\\.bal\\'" . balance-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)
;; '("\\.tex\\'" . latex-mode)
;; '("\\.xr\\'" . conf-xdefaults-mode)
;; '("*" . text-mode) )))
;; (setq auto-mode-alist (nconc modes auto-mode-alist)) )
might as well be
(nconc (list
'("\\.bal\\'" . balance-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)
'("\\.tex\\'" . latex-mode)
'("\\.xr\\'" . conf-xdefaults-mode)
'("*" . text-mode) )
auto-mode-alist)
right?
source:
https://dataswamp.org/~incal/emacs-init/dired-incal.el
https://dataswamp.org/~incal/emacs-init/mode-by-filename.el
--
underground experts united
https://dataswamp.org/~incal
- Re: Appending lists, (continued)
Re: Appending lists, Drew Adams, 2021/06/16
- Re: Appending lists, tomas, 2021/06/17
- Re: Appending lists, Emanuel Berg, 2021/06/18
- Re: Appending lists, Emanuel Berg, 2021/06/18
- Re: Appending lists, tomas, 2021/06/19
- Re: Appending lists, Emanuel Berg, 2021/06/19
- RE: [External] : Re: Appending lists, Drew Adams, 2021/06/19
- Re: [External] : Re: Appending lists,
Emanuel Berg <=
- Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
- Re: [External] : Re: Appending lists, Jean Louis, 2021/06/20
- Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
Re: [External] : Re: Appending lists, Jean Louis, 2021/06/20
Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
Re: [External] : Re: Appending lists, Jean Louis, 2021/06/20
Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
Re: [External] : Re: Appending lists, Jean Louis, 2021/06/20