smart-mode-line icon indicating copy to clipboard operation
smart-mode-line copied to clipboard

Adding replacer-regex-path fails

Open hjpotter92 opened this issue 7 years ago • 0 comments

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.

hjpotter92 avatar Jan 05 '17 04:01 hjpotter92