Fix stupid typo (orig-fn != orig-fun)

This commit is contained in:
TEC 2020-12-13 20:10:39 +08:00
parent 990f236836
commit 5b88116d9b
1 changed files with 2 additions and 4 deletions

View File

@ -4212,10 +4212,8 @@ Hence, we need to do a bit of overriding.
All those numbers! It's messy. Let's adjust this in a similar way that I have in
the [[*Window title][Window title]].
#+begin_src emacs-lisp
(defadvice! doom-modeline--buffer-file-name-roam-aware-a (orig-fn)
:around #'doom-modeline-buffer-file-name
(message "Reformat?")
(message (buffer-file-name))
(defadvice! doom-modeline--buffer-file-name-roam-aware-a (orig-fun)
:around #'doom-modeline-buffer-file-name ; takes no args
(if (s-contains-p org-roam-directory (or buffer-file-name ""))
(replace-regexp-in-string
"\\(?:^\\|.*/\\)\\([0-9]\\{4\\}\\)\\([0-9]\\{2\\}\\)\\([0-9]\\{2\\}\\)[0-9]*-"