[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 9767c97 11/15: Improve aliases

From: Artur Malabarba
Subject: [elpa] master 9767c97 11/15: Improve aliases
Date: Thu, 03 Sep 2015 11:01:23 +0000

branch: master
commit 9767c978e04bbb730d75620af1a3b1fa93d63dea
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    Improve aliases
 nameless.el |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/nameless.el b/nameless.el
index 382a034..96a3893 100644
--- a/nameless.el
+++ b/nameless.el
@@ -45,11 +45,11 @@
   "Customization group for nameless."
   :group 'emacs)
-(defcustom nameless-prefix "/"
+(defcustom nameless-prefix ":"
   "Prefix displayed instead of package namespace."
   :type 'string)
-(defcustom nameless-global-aliases nil
+(defcustom nameless-global-aliases '(("fl" . "font-lock"))
   "Alist from aliases to namespaces.
 This alist is used everywhere.  It is designed for namespaces you
 use commonly.  To apply aliases specific to a file, set the
@@ -162,8 +162,8 @@ for it to take effect."
            (alias (buffer-substring l r))
            (full-name (when alias
-                        (cdr (or (assoc alias nameless-global-aliases)
-                                 (assoc alias nameless-aliases))))))
+                        (cdr (or (assoc alias nameless-aliases)
+                                 (assoc alias nameless-global-aliases))))))
       (if full-name
           (progn (delete-region l r)
                  (insert full-name "-"))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]