Skip to content

Commit

Permalink
[Issue #10] Remove mls keymap and mls-toggle-key
Browse files Browse the repository at this point in the history
  • Loading branch information
agpchil committed Aug 17, 2014
1 parent 4bd0a07 commit bd10f7c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions mode-line-stats.el
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@
:group 'help
:link '(url-link "http://github.com/agpchil/mode-line-stats"))

(defvar mls-toggle-key (kbd "C-º")
"Keybinding to toggle primary/secondary mode-lines.")

(defvar mls-format-regexp
"\\([\%\&][^ \{]+\\)\\(\{\\([^\}]+\\)?\}\\)?"
"Regexp to parse formatters in the format strings.")
Expand Down Expand Up @@ -532,9 +529,7 @@ will return 'header-line-format."

(mls-mode-line-setup)

(mls-enable-mode-line)

(mls-keymap-setup))
(mls-enable-mode-line))

(defun mls-turn-off ()
"Turn off mode-line-stats mode."
Expand All @@ -543,14 +538,6 @@ will return 'header-line-format."
(dolist (module-sym mls-modules)
(mls-disable-module (symbol-name module-sym))))

(defvar mode-line-stats-mode-map (make-keymap)
"Keymap for mode-line-stats mode.")

(defun mls-keymap-setup ()
"Init the keymap."
;; key bindings
(define-key mode-line-stats-mode-map mls-toggle-key 'mls-mode-line-toggle))

(define-minor-mode mode-line-stats-mode
"Show stats in mode-line."
:global t
Expand Down

0 comments on commit bd10f7c

Please sign in to comment.