Associate the matlab icon with .m files

This commit is contained in:
TEC 2021-06-16 04:31:43 +08:00
parent 83b3e8d5aa
commit abf9231625
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 9 additions and 0 deletions

View File

@ -1892,6 +1892,15 @@ have the following.
(setq abbrev-file-name (expand-file-name "abbrev.el" doom-private-dir))
(setq save-abbrevs 'silently))
#+end_src
** All the icons
=all-the-icons= does a generally great job giving file names icons. One minor
niggle I have is that when /I/ open a =.m= file, it's much more likely to be Matlab
than Objective-C. As such, it'll be switching the icon associated with =.m=.
#+begin_src emacs-lisp
(after! all-the-icons
(setcdr (assoc "m" all-the-icons-extension-icon-alist)
(cdr (assoc "matlab" all-the-icons-extension-icon-alist))))
#+end_src
** Avy
What a wonderful way to jump to buffer positions, and it uses the QWERTY
home-row for jumping. Very convenient ... except I'm using Colemak.