2015-12-08 08:06:16 +00:00
|
|
|
;;; packages.el --- command-log Layer packages File for Spacemacs
|
|
|
|
;;
|
2021-01-24 21:48:04 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-12-08 08:06:16 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-12-08 08:06:16 +00:00
|
|
|
|
2021-01-24 21:48:04 +00:00
|
|
|
(defconst command-log-packages
|
|
|
|
;; bmag/command-log-mode is a fork of lewang/command-log-mode, and there
|
|
|
|
;; is an open PR to merge the fork into the original repo.
|
|
|
|
;; TODO when the PR is merged upstream, change to use the original package
|
|
|
|
;; from MELPA (IOW remove :location argument)
|
|
|
|
'((command-log-mode :location (recipe :fetcher github
|
|
|
|
:repo "bmag/command-log-mode"
|
|
|
|
:branch "color"))
|
|
|
|
keycast))
|
2015-12-08 08:06:16 +00:00
|
|
|
|
|
|
|
(defun command-log/init-command-log-mode ()
|
|
|
|
(use-package command-log-mode
|
|
|
|
:commands global-command-log-mode
|
|
|
|
;; :commands (clm/open-command-log-buffer global-command-log-mode spacemacs/toggle-command-log-mode)
|
|
|
|
:init
|
2021-01-24 21:48:04 +00:00
|
|
|
(progn
|
|
|
|
(spacemacs/declare-prefix "atl" "command log")
|
|
|
|
(spacemacs/set-leader-keys "atll" #'global-command-log-mode))
|
2015-12-08 08:06:16 +00:00
|
|
|
:config
|
|
|
|
(setq clm/log-command-exceptions* (append clm/log-command-exceptions*
|
|
|
|
'(evil-next-line
|
|
|
|
evil-previous-line
|
|
|
|
evil-forward-char
|
|
|
|
evil-backward-char))
|
|
|
|
command-log-mode-auto-show t)))
|
2021-01-24 21:48:04 +00:00
|
|
|
|
2021-02-10 07:51:55 +00:00
|
|
|
(defun command-log/init-keycast ()
|
2021-01-24 21:48:04 +00:00
|
|
|
(use-package keycast
|
|
|
|
:init
|
|
|
|
(progn
|
|
|
|
(spacemacs/set-leader-keys "atlk" #'keycast-mode)
|
|
|
|
(setq keycast-insert-after "%e"))))
|