You can even just hide the prefix completely by setting this variable
to an empty string.
- While the mode is active, the <kbd>C-c C--</kbd> key inserts the
+ While the mode is active, the =C-c C--= key inserts the
package namespace if appropriate.
* Configuration
** Quickly typing the namespace
- ~nameless-mode~ binds the <kbd>C-c C--</kbd> key to
+ ~nameless-mode~ binds the =C-c C--= key to
~nameless-insert-name~, which immediately inserts the current name for
you, or even expands aliases to the names they point to.
#+END_SRC
There’s also a command called ~nameless-insert-name-or-self-insert~.
- You can bind this to the <kbd>_</kbd> key and make it even faster to
+ You can bind this to the =_= key and make it even faster to
insert the name.
** Configuring the namespace name
Nameless guesses the package name with the ~lm-get-package-name~
;; nameless-aliases: (("c" . "cider"))
;; End:
#+END_SRC
- /Note that there’s no ~quote~ before ~((c~!/\\
+ Note that there’s no ~quote~ before ~((c~!\\
You can also configure it for a whole project, by setting it as a dir-local variable.
** Indentation and paragraph filling
;; Author: Artur Malabarba <emacs@endlessparentheses.com>
;; Keywords: convenience, lisp
- ;; Version: 0.4
+ ;; Version: 0.4.1
;; Package-Requires: ((emacs "24.4"))
;; This program is free software; you can redistribute it and/or modify
(ignore-errors (string-match "\\.el\\'" (lm-get-package-name))))
(progn
(unless nameless-current-name
- (setq nameless-current-name (replace-regexp-in-string "\\.[^.]*\\'" "" (lm-get-package-name))))
+ (setq nameless-current-name (replace-regexp-in-string "\\(-mode\\)?\\.[^.]*\\'" "" (lm-get-package-name))))
(add-function :filter-return (local 'filter-buffer-substring-function)
#'nameless--filter-string)
(apply #'nameless--add-keywords