[ELPA] Update
This commit is contained in:
parent
bb02015432
commit
9a660c5538
|
@ -1,120 +0,0 @@
|
|||
;;; lv.el --- Other echo area
|
||||
|
||||
;; Copyright (C) 2015 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Oleh Krehel
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
||||
;; GNU Emacs 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.
|
||||
|
||||
;; GNU Emacs 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 GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; This package provides `lv-message' intended to be used in place of
|
||||
;; `message' when semi-permanent hints are needed, in order to not
|
||||
;; interfere with Echo Area.
|
||||
;;
|
||||
;; "Я тихо-тихо пiдглядаю,
|
||||
;; І тiшуся собi, як бачу то,
|
||||
;; Шо страшить i не пiдпускає,
|
||||
;; А iншi п’ють тебе, як воду пiсок."
|
||||
;; -- Андрій Кузьменко, L.V.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(defgroup lv nil
|
||||
"The other echo area."
|
||||
:group 'minibuffer
|
||||
:group 'hydra)
|
||||
|
||||
(defcustom lv-use-separator nil
|
||||
"Whether to draw a line between the LV window and the Echo Area."
|
||||
:group 'lv
|
||||
:type 'boolean)
|
||||
|
||||
(defface lv-separator
|
||||
'((((class color) (background light)) :background "grey80")
|
||||
(((class color) (background dark)) :background "grey30"))
|
||||
"Face used to draw line between the lv window and the echo area.
|
||||
This is only used if option `lv-use-separator' is non-nil.
|
||||
Only the background color is significant."
|
||||
:group 'lv)
|
||||
|
||||
(defvar lv-wnd nil
|
||||
"Holds the current LV window.")
|
||||
|
||||
(defvar display-line-numbers)
|
||||
|
||||
(defun lv-window ()
|
||||
"Ensure that LV window is live and return it."
|
||||
(if (window-live-p lv-wnd)
|
||||
lv-wnd
|
||||
(let ((ori (selected-window))
|
||||
buf)
|
||||
(prog1 (setq lv-wnd
|
||||
(select-window
|
||||
(let ((ignore-window-parameters t))
|
||||
(split-window
|
||||
(frame-root-window) -1 'below))))
|
||||
(if (setq buf (get-buffer " *LV*"))
|
||||
(switch-to-buffer buf)
|
||||
(switch-to-buffer " *LV*")
|
||||
(set-window-hscroll lv-wnd 0)
|
||||
(setq window-size-fixed t)
|
||||
(setq mode-line-format nil)
|
||||
(setq cursor-type nil)
|
||||
(setq display-line-numbers nil)
|
||||
(set-window-dedicated-p lv-wnd t)
|
||||
(set-window-parameter lv-wnd 'no-other-window t))
|
||||
(select-window ori)))))
|
||||
|
||||
(defvar golden-ratio-mode)
|
||||
|
||||
(defvar lv-force-update nil
|
||||
"When non-nil, `lv-message' will refresh even for the same string.")
|
||||
|
||||
(defun lv-message (format-string &rest args)
|
||||
"Set LV window contents to (`format' FORMAT-STRING ARGS)."
|
||||
(let* ((str (apply #'format format-string args))
|
||||
(n-lines (cl-count ?\n str))
|
||||
deactivate-mark
|
||||
golden-ratio-mode)
|
||||
(with-selected-window (lv-window)
|
||||
(unless (and (string= (buffer-string) str)
|
||||
(null lv-force-update))
|
||||
(delete-region (point-min) (point-max))
|
||||
(insert str)
|
||||
(when (and (window-system) lv-use-separator)
|
||||
(unless (looking-back "\n" nil)
|
||||
(insert "\n"))
|
||||
(insert
|
||||
(propertize "__" 'face 'lv-separator 'display '(space :height (1)))
|
||||
(propertize "\n" 'face 'lv-separator 'line-height t)))
|
||||
(set (make-local-variable 'window-min-height) n-lines)
|
||||
(setq truncate-lines (> n-lines 1))
|
||||
(let ((window-resize-pixelwise t)
|
||||
(window-size-fixed nil))
|
||||
(fit-window-to-buffer nil nil 1)))
|
||||
(goto-char (point-min)))))
|
||||
|
||||
(defun lv-delete-window ()
|
||||
"Delete LV window and kill its buffer."
|
||||
(when (window-live-p lv-wnd)
|
||||
(let ((buf (window-buffer lv-wnd)))
|
||||
(delete-window lv-wnd)
|
||||
(kill-buffer buf))))
|
||||
|
||||
(provide 'lv)
|
||||
|
||||
;;; lv.el ends here
|
|
@ -84,13 +84,6 @@ result of `defhydra'.
|
|||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "hydra-ox" '("hydra-ox")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "lv" "lv.el" (0 0 0 0))
|
||||
;;; Generated autoloads from lv.el
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "lv" '("lv-")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil nil ("hydra-pkg.el") (0 0 0 0))
|
|
@ -1,5 +1,6 @@
|
|||
(define-package "hydra" "20190326.1950" "Make bindings that stick around."
|
||||
'((cl-lib "0.5"))
|
||||
(define-package "hydra" "20190405.1015" "Make bindings that stick around."
|
||||
'((cl-lib "0.5")
|
||||
(lv "0"))
|
||||
:keywords
|
||||
'("bindings")
|
||||
:authors
|
|
@ -7,7 +7,7 @@
|
|||
;; URL: https://github.com/abo-abo/hydra
|
||||
;; Version: 0.14.0
|
||||
;; Keywords: bindings
|
||||
;; Package-Requires: ((cl-lib "0.5"))
|
||||
;; Package-Requires: ((cl-lib "0.5") (lv "0"))
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
;;; use-package-autoloads.el --- automatically extracted autoloads
|
||||
;;
|
||||
;;; Code:
|
||||
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
|
||||
|
||||
(add-to-list 'load-path (directory-file-name
|
||||
(or (file-name-directory #$) (car load-path))))
|
||||
|
||||
|
||||
;;;### (autoloads nil "use-package-bind-key" "use-package-bind-key.el"
|
||||
;;;;;; (23555 57959 115271 477000))
|
||||
;;;;;; (0 0 0 0))
|
||||
;;; Generated autoloads from use-package-bind-key.el
|
||||
|
||||
(autoload 'use-package-autoload-keymap "use-package-bind-key" "\
|
||||
|
@ -53,10 +56,12 @@ deferred until the prefix key sequence is pressed.
|
|||
|
||||
\(fn NAME KEYWORD ARG REST STATE)" nil nil)
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "use-package-bind-key" '("use-package-handler/:bind*")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "use-package-core" "use-package-core.el" (23555
|
||||
;;;;;; 57959 63271 224000))
|
||||
;;;### (autoloads nil "use-package-core" "use-package-core.el" (0
|
||||
;;;;;; 0 0 0))
|
||||
;;; Generated autoloads from use-package-core.el
|
||||
|
||||
(autoload 'use-package "use-package-core" "\
|
||||
|
@ -85,6 +90,7 @@ this file. Usage:
|
|||
package. This is useful if the package is being lazily
|
||||
loaded, and you wish to conditionally call functions in your
|
||||
`:init' block that are defined in the package.
|
||||
:hook Specify hook(s) to attach this package to.
|
||||
|
||||
:bind Bind keys, and define autoloads for the bound commands.
|
||||
:bind* Bind keys, and define autoloads for the bound commands,
|
||||
|
@ -94,7 +100,7 @@ this file. Usage:
|
|||
:bind-keymap* Like `:bind-keymap', but overrides all minor mode bindings
|
||||
|
||||
:defer Defer loading of a package -- this is implied when using
|
||||
`:commands', `:bind', `:bind*', `:mode', `:magic',
|
||||
`:commands', `:bind', `:bind*', `:mode', `:magic', `:hook',
|
||||
`:magic-fallback', or `:interpreter'. This can be an integer,
|
||||
to force loading after N seconds of idle time, if the package
|
||||
has not already been loaded.
|
||||
|
@ -118,10 +124,12 @@ this file. Usage:
|
|||
|
||||
(function-put 'use-package 'lisp-indent-function '1)
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "use-package-core" '("use-package-")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "use-package-delight" "use-package-delight.el"
|
||||
;;;;;; (23555 57959 51271 166000))
|
||||
;;;;;; (0 0 0 0))
|
||||
;;; Generated autoloads from use-package-delight.el
|
||||
|
||||
(autoload 'use-package-normalize/:delight "use-package-delight" "\
|
||||
|
@ -134,10 +142,12 @@ Normalize arguments to delight.
|
|||
|
||||
\(fn NAME KEYWORD ARGS REST STATE)" nil nil)
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "use-package-delight" '("use-package-normalize-delight")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "use-package-diminish" "use-package-diminish.el"
|
||||
;;;;;; (23555 57959 95271 379000))
|
||||
;;;;;; (0 0 0 0))
|
||||
;;; Generated autoloads from use-package-diminish.el
|
||||
|
||||
(autoload 'use-package-normalize/:diminish "use-package-diminish" "\
|
||||
|
@ -150,10 +160,12 @@ Normalize arguments to delight.
|
|||
|
||||
\(fn NAME KEYWORD ARG REST STATE)" nil nil)
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "use-package-diminish" '("use-package-normalize-diminish")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "use-package-ensure" "use-package-ensure.el"
|
||||
;;;;;; (23555 57959 71271 263000))
|
||||
;;;;;; (0 0 0 0))
|
||||
;;; Generated autoloads from use-package-ensure.el
|
||||
|
||||
(autoload 'use-package-normalize/:ensure "use-package-ensure" "\
|
||||
|
@ -166,10 +178,12 @@ Normalize arguments to delight.
|
|||
|
||||
\(fn NAME KEYWORD ENSURE REST STATE)" nil nil)
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "use-package-ensure" '("use-package-")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "use-package-jump" "use-package-jump.el" (23555
|
||||
;;;;;; 57959 79271 302000))
|
||||
;;;### (autoloads nil "use-package-jump" "use-package-jump.el" (0
|
||||
;;;;;; 0 0 0))
|
||||
;;; Generated autoloads from use-package-jump.el
|
||||
|
||||
(autoload 'use-package-jump-to-package-form "use-package-jump" "\
|
||||
|
@ -181,10 +195,12 @@ instead.
|
|||
|
||||
\(fn PACKAGE)" t nil)
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "use-package-jump" '("use-package-find-require")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "use-package-lint" "use-package-lint.el" (23555
|
||||
;;;;;; 57959 91271 361000))
|
||||
;;;### (autoloads nil "use-package-lint" "use-package-lint.el" (0
|
||||
;;;;;; 0 0 0))
|
||||
;;; Generated autoloads from use-package-lint.el
|
||||
|
||||
(autoload 'use-package-lint "use-package-lint" "\
|
||||
|
@ -194,10 +210,12 @@ with the specified `:load-path' the module cannot be found.
|
|||
|
||||
\(fn)" t nil)
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "use-package-lint" '("use-package-lint-declaration")))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil nil ("use-package-pkg.el" "use-package.el")
|
||||
;;;;;; (23555 57959 83271 321000))
|
||||
;;;;;; (0 0 0 0))
|
||||
|
||||
;;;***
|
||||
|
||||
|
@ -205,5 +223,6 @@ with the specified `:load-path' the module cannot be found.
|
|||
;; version-control: never
|
||||
;; no-byte-compile: t
|
||||
;; no-update-autoloads: t
|
||||
;; coding: utf-8
|
||||
;; End:
|
||||
;;; use-package-autoloads.el ends here
|
|
@ -1533,6 +1533,7 @@ this file. Usage:
|
|||
package. This is useful if the package is being lazily
|
||||
loaded, and you wish to conditionally call functions in your
|
||||
`:init' block that are defined in the package.
|
||||
:hook Specify hook(s) to attach this package to.
|
||||
|
||||
:bind Bind keys, and define autoloads for the bound commands.
|
||||
:bind* Bind keys, and define autoloads for the bound commands,
|
||||
|
@ -1542,7 +1543,7 @@ this file. Usage:
|
|||
:bind-keymap* Like `:bind-keymap', but overrides all minor mode bindings
|
||||
|
||||
:defer Defer loading of a package -- this is implied when using
|
||||
`:commands', `:bind', `:bind*', `:mode', `:magic',
|
||||
`:commands', `:bind', `:bind*', `:mode', `:magic', `:hook',
|
||||
`:magic-fallback', or `:interpreter'. This can be an integer,
|
||||
to force loading after N seconds of idle time, if the package
|
||||
has not already been loaded.
|
|
@ -1,4 +1,4 @@
|
|||
(define-package "use-package" "20181119.2350" "A configuration macro for simplifying your .emacs"
|
||||
(define-package "use-package" "20190405.2047" "A configuration macro for simplifying your .emacs"
|
||||
'((emacs "24.3")
|
||||
(bind-key "2.4"))
|
||||
:keywords
|
Loading…
Reference in New Issue