smart-mode-line
smart-mode-line copied to clipboard
Adding replacer-regex-path fails
I keep my projects inside the directory tree:
~/Documents/com.path/
and the Java based projects have a structure like:
~/Documents/com.path/project-name/src/main/java/com/path/
To that effect, I use the following (in .emacs.d/init.el
):
(add-to-list 'sml/replacer-regexp-list '("^~/Documents/com\\.path/" ":com:")) ;; Also tried `\.path` and/or using a `t` parameter
(add-to-list 'sml/replacer-regexp-list '("^:Doc:com\.path/" ":com:") t)
(add-to-list 'sml/replacer-regexp-list '("^:com:\\(.*\\)/src/main/java/com/path/" ":C/\\1/SMJCP:") t)
(sml/setup)
None of them produces the result I am looking for. I still get the default :Doc:com.path/
or :Doc:.../path/file.java
in the mode-line.