aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-15 22:07:48 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-15 22:07:48 -0200
commit74fce2c36f803abe232eebe9f542696b8d0fac23 (patch)
tree34fca3783f527a7934c655acaa25e7b9c753f023
parent1dfa97db27a72f0121001b1d85c13d1cdee37f31 (diff)
Always use sx-tag face for tags
-rw-r--r--sx-question-list.el8
-rw-r--r--sx-question-print.el7
-rw-r--r--sx-tag.el6
3 files changed, 8 insertions, 13 deletions
diff --git a/sx-question-list.el b/sx-question-list.el
index 306d39f..256bdb4 100644
--- a/sx-question-list.el
+++ b/sx-question-list.el
@@ -81,11 +81,6 @@
""
:group 'sx-question-list-faces)
-(defface sx-question-list-tags
- '((t :inherit sx-question-mode-tags))
- ""
- :group 'sx-question-list-faces)
-
(defface sx-question-list-date
'((t :inherit font-lock-comment-face))
""
@@ -170,8 +165,7 @@ Also see `sx-question-list-refresh'."
" "
;; @TODO: Make this width customizable. (Or maybe just make
;; the whole thing customizable)
- (propertize (format "%-40s" (mapconcat #'sx-tag--format .tags " "))
- 'face 'sx-question-list-tags)
+ (format "%-40s" (mapconcat #'sx-tag--format .tags " "))
" "
(sx-user--format "%15d %4r" .owner)
(propertize " " 'display "\n")))))))
diff --git a/sx-question-print.el b/sx-question-print.el
index 0ae0f04..6791222 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -79,11 +79,6 @@ Some faces of this mode might be defined in the `sx-user' group."
:type 'string
:group 'sx-question-mode)
-(defface sx-question-mode-tags
- '((t :underline nil :inherit font-lock-function-name-face))
- "Face used on the question tags in the question buffer."
- :group 'sx-question-mode-faces)
-
(defface sx-question-mode-score
'((t))
"Face used for the score in the question buffer."
@@ -224,7 +219,7 @@ DATA can represent a question or an answer."
(sx-question-mode--insert-header
sx-question-mode-header-tags
(mapconcat #'sx-tag--format .tags " ")
- 'sx-question-mode-tags))
+ nil))
;; Body
(insert "\n"
(propertize sx-question-mode-separator
diff --git a/sx-tag.el b/sx-tag.el
index ba32544..d9e2877 100644
--- a/sx-tag.el
+++ b/sx-tag.el
@@ -24,6 +24,12 @@
(require 'sx)
(require 'sx-method)
+(defface sx-tag
+ '((t :underline nil :inherit font-lock-function-name-face))
+ "Face used on the question tags in the question buffer."
+ :group 'sx-question-mode-faces
+ :group 'sx-question-list-faces)
+
;;; Getting the list from a site
(defconst sx-tag-filter