Closed progfolio closed 9 months ago
Add one element when appropriate. e.g. Instead of adding multiple entries to auto-mode-alist:
auto-mode-alist
(add-to-list 'auto-mode-list ("\\.inp\\'" . apdl-mode)) (add-to-list 'auto-mode-list ("\\.dat\\'" . apdl-mode)) (add-to-list 'auto-mode-list ("\\.ans\\'" . apdl-mode)) (add-to-list 'auto-mode-list ("\\.mac\\'" . apdl-mode))
Add a single element:
(add-to-list 'auto-mode-list ("\\.\\(?:ans\\|dat\\|inp\\|mac\\)\\'" . apdl-mode))
The same should be considered for any global variable which is checked frequently.
Add one element when appropriate. e.g. Instead of adding multiple entries to
auto-mode-alist
:Add a single element:
The same should be considered for any global variable which is checked frequently.