]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
9 years agoUpdate copyright exceptions for AUCTeX
Stefan Monnier [Sun, 22 Mar 2015 15:25:09 +0000 (11:25 -0400)]
Update copyright exceptions for AUCTeX

9 years agoMerge commit '243c680396edc99db85cc3152a7bbf020aa7a233' from ace-window
Oleh Krehel [Sat, 21 Mar 2015 19:06:04 +0000 (20:06 +0100)]
Merge commit '243c680396edc99db85cc3152a7bbf020aa7a233' from ace-window

9 years agoace-window.el: Update Copyright notice
Oleh Krehel [Sat, 21 Mar 2015 19:05:13 +0000 (20:05 +0100)]
ace-window.el: Update Copyright notice

9 years agoAdd 'packages/ace-window/' from commit '2580bf9bd7f66ed4e923a125ee8efcc4b6a043e0'
Oleh Krehel [Sat, 21 Mar 2015 19:01:38 +0000 (20:01 +0100)]
Add 'packages/ace-window/' from commit '2580bf9bd7f66ed4e923a125ee8efcc4b6a043e0'

git-subtree-dir: packages/ace-window
git-subtree-mainline: 6afd0453ab48e472d725a32f99a238cb06cd5265
git-subtree-split: 2580bf9bd7f66ed4e923a125ee8efcc4b6a043e0

9 years ago* timerfunctions.el: Fix compilation error.
Stefan Monnier [Fri, 20 Mar 2015 20:23:36 +0000 (16:23 -0400)]
* timerfunctions.el: Fix compilation error.

9 years agoace-window.el (aw-mode-line-face): Inherit from mode-line-buffer-id
Oleh Krehel [Sun, 15 Mar 2015 11:57:26 +0000 (12:57 +0100)]
ace-window.el (aw-mode-line-face): Inherit from mode-line-buffer-id

Fixes #28

9 years agoMerge commit 'f062d5a55496e22cf89f2ef9778a24a840a5a68e' from context-coloring
Jackson Ray Hamilton [Sat, 14 Mar 2015 19:11:18 +0000 (12:11 -0700)]
Merge commit 'f062d5a55496e22cf89f2ef9778a24a840a5a68e' from context-coloring

9 years agoVersion 6.1.0.
Jackson Ray Hamilton [Sat, 14 Mar 2015 19:04:02 +0000 (12:04 -0700)]
Version 6.1.0.

9 years agoUpdate options documentation.
Jackson Ray Hamilton [Sat, 14 Mar 2015 18:39:42 +0000 (11:39 -0700)]
Update options documentation.

9 years agoUse the better zenburn red.
Jackson Ray Hamilton [Sat, 14 Mar 2015 18:22:12 +0000 (11:22 -0700)]
Use the better zenburn red.

9 years agoDeprecate `comments-and-strings'.
Jackson Ray Hamilton [Sat, 14 Mar 2015 18:10:11 +0000 (11:10 -0700)]
Deprecate `comments-and-strings'.

9 years agoAdd syntactic strings option.
Jackson Ray Hamilton [Sat, 14 Mar 2015 17:48:41 +0000 (10:48 -0700)]
Add syntactic strings option.

9 years agoRefactor tests for setups and reused fixtures.
Jackson Ray Hamilton [Sat, 14 Mar 2015 16:37:26 +0000 (09:37 -0700)]
Refactor tests for setups and reused fixtures.

9 years agoAdd option to only colorize comments specially.
Jackson Ray Hamilton [Sat, 14 Mar 2015 07:23:30 +0000 (00:23 -0700)]
Add option to only colorize comments specially.

9 years agoMake sure not to extend `mode-line-format' twice
Oleh Krehel [Fri, 13 Mar 2015 14:08:52 +0000 (15:08 +0100)]
Make sure not to extend `mode-line-format' twice

* ace-window.el (ace-window-display-mode): Update.

Re #27.

9 years agopackages/javaimp/javaimp.el: use line-beginning-position instead of forward-line
Filipp Gunbin [Wed, 11 Mar 2015 18:10:23 +0000 (21:10 +0300)]
packages/javaimp/javaimp.el: use line-beginning-position instead of forward-line

9 years agopackages/javaimp/javaimp.el: replace kill-line with delete-region
Filipp Gunbin [Tue, 10 Mar 2015 18:14:42 +0000 (21:14 +0300)]
packages/javaimp/javaimp.el: replace kill-line with delete-region

9 years agoMerge commit 'f954c936afc1e3de21a3ee0d6e5add9853f8ed58'
Matthew Carter [Tue, 10 Mar 2015 05:04:13 +0000 (01:04 -0400)]
Merge commit 'f954c936afc1e3de21a3ee0d6e5add9853f8ed58'

9 years agoAdd some better defaults for helm selections
Matthew Carter [Tue, 10 Mar 2015 05:00:44 +0000 (01:00 -0400)]
Add some better defaults for helm selections

9 years agoUpdate seq.el to version 1.3
Nicolas Petton [Mon, 9 Mar 2015 11:35:07 +0000 (12:35 +0100)]
Update seq.el to version 1.3

* packages/seq/seq.el: update to version 1.3
* packages/seq/tests/seq-tests.el: update to version 1.3

9 years agoAdd `ace-window-display-mode' minor mode
Oleh Krehel [Sun, 8 Mar 2015 20:39:11 +0000 (21:39 +0100)]
Add `ace-window-display-mode' minor mode

* ace-window.el (ace-window-display-mode): Display the `ace-window' full
  key path in each window.
(aw-update): New defun. Traverse all windows and set their
ace-window-path parameter. Some synchronization should be added to
`aw-select' wrt ignored windows.

9 years agoAdd show keys on mode line feature.
Shihpin Tseng [Sat, 7 Mar 2015 08:50:46 +0000 (16:50 +0800)]
Add show keys on mode line feature.

9 years agoMerge commit '7eca7d023c95bc21c7838467b3a58d549afaf68d'
Artur Malabarba [Sun, 8 Mar 2015 00:20:36 +0000 (21:20 -0300)]
Merge commit '7eca7d023c95bc21c7838467b3a58d549afaf68d'

9 years agospinner: Update copyright
Artur Malabarba [Sun, 8 Mar 2015 00:20:18 +0000 (21:20 -0300)]
spinner: Update copyright

9 years agolet-alist: Update copyright
Artur Malabarba [Sun, 8 Mar 2015 00:19:38 +0000 (21:19 -0300)]
let-alist: Update copyright

9 years agoMerge commit 'a7b4e52766977b58c6b9899305e962a2b5235bda'
Artur Malabarba [Sun, 8 Mar 2015 00:17:26 +0000 (21:17 -0300)]
Merge commit 'a7b4e52766977b58c6b9899305e962a2b5235bda'

9 years agoRequire cl-lib
Artur Malabarba [Sun, 8 Mar 2015 00:17:05 +0000 (21:17 -0300)]
Require cl-lib

9 years agoAdd 'packages/spinner/' from commit '9477ee899d62259d4b946f243cdcdd9cdeb1e910'
Artur Malabarba [Sat, 7 Mar 2015 23:38:51 +0000 (20:38 -0300)]
Add 'packages/spinner/' from commit '9477ee899d62259d4b946f243cdcdd9cdeb1e910'

git-subtree-dir: packages/spinner
git-subtree-mainline: 5736e852fd48a0f1ba1c328dd4d03e3fa008a406
git-subtree-split: 9477ee899d62259d4b946f243cdcdd9cdeb1e910

9 years agoMerge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa
Artur Malabarba [Sat, 7 Mar 2015 23:37:45 +0000 (20:37 -0300)]
Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa

9 years agoAdd url
Artur Malabarba [Sat, 7 Mar 2015 23:31:18 +0000 (20:31 -0300)]
Add url

9 years agoA couple more spinners
Artur Malabarba [Sat, 7 Mar 2015 23:03:49 +0000 (20:03 -0300)]
A couple more spinners

9 years agoADd gif
Artur Malabarba [Sat, 7 Mar 2015 22:54:22 +0000 (19:54 -0300)]
ADd gif

9 years agoWhitespace
Artur Malabarba [Sat, 7 Mar 2015 22:43:29 +0000 (19:43 -0300)]
Whitespace

9 years agoReadme
Artur Malabarba [Sat, 7 Mar 2015 22:43:24 +0000 (19:43 -0300)]
Readme

9 years agoHeadline
Artur Malabarba [Sat, 7 Mar 2015 22:27:31 +0000 (19:27 -0300)]
Headline

9 years agoCustomizable speed
Artur Malabarba [Sat, 7 Mar 2015 22:25:29 +0000 (19:25 -0300)]
Customizable speed

9 years agoAdd spinners
Artur Malabarba [Sat, 7 Mar 2015 22:25:13 +0000 (19:25 -0300)]
Add spinners

9 years agorainbow: fix font-lock-mode refresh
Julien Danjou [Fri, 6 Mar 2015 16:01:32 +0000 (17:01 +0100)]
rainbow: fix font-lock-mode refresh

9 years agoAdd file
Artur Malabarba [Fri, 6 Mar 2015 14:18:56 +0000 (11:18 -0300)]
Add file

9 years agoMerge commit 'e342c330807fdd09adba974611122d1c95bdf07d' from hydra
Oleh Krehel [Fri, 6 Mar 2015 12:58:08 +0000 (13:58 +0100)]
Merge commit 'e342c330807fdd09adba974611122d1c95bdf07d' from hydra

9 years agoAllow switching to the previous window
Oleh Krehel [Fri, 6 Mar 2015 11:33:42 +0000 (12:33 +0100)]
Allow switching to the previous window

* ace-window.el (aw--flip-keys): New defvar.
(aw-flip-keys): New defcustom. If one of the keys on this list is
pressed, when `aw-keys' are expected, instead of giving an error, select
the previously visited window.
(aw-select): Update.

(aw--window-ring): New defvar. Store the last 10 selected windows.
(aw--push-window): Remember window into `aw--window-ring'.
(aw--pop-window): Pop window from `aw--window-ring'.
(aw-switch-to-window): Insert the window into `aw--window-ring'.
(aw-swap-window): Insert the window into `aw--window-ring'.

(aw-flip-window): New defun, do the flipping action without having to go
though the `ace-select-window' dispatch.

Fixes #23.

9 years agoavy.el (avy-read): Give a more precise error
Oleh Krehel [Fri, 6 Mar 2015 11:33:27 +0000 (12:33 +0100)]
avy.el (avy-read): Give a more precise error

9 years agoInitial commit
Artur Malabarba [Fri, 6 Mar 2015 10:26:25 +0000 (07:26 -0300)]
Initial commit

9 years agohydra-ox.el: Emulate org-mode export dispatch
Oleh Krehel [Thu, 5 Mar 2015 20:29:50 +0000 (21:29 +0100)]
hydra-ox.el: Emulate org-mode export dispatch

* hydra-ox.el (hydra-ox): New radiogroup.
(hydra-ox-html): New hydra.
(hydra-ox-latex): New hydra.
(hydra-ox-text): New hydra.
(hydra-ox): New hydra that includes the above three hydras.
(org-mode-map): Add test binding.

Re #66.

9 years agoUpdate with a couple helm colors
Matthew Carter [Thu, 5 Mar 2015 03:01:01 +0000 (22:01 -0500)]
Update with a couple helm colors

9 years agoMerge commit 'e085a333867959a1b36015a3ad8e12e5bd6550d9' from company
Dmitry Gutov [Wed, 4 Mar 2015 17:01:20 +0000 (19:01 +0200)]
Merge commit 'e085a333867959a1b36015a3ad8e12e5bd6550d9' from company

9 years agocompany--merge-async: Handle mixed sync/async and immediate callbacks better
Dmitry Gutov [Wed, 4 Mar 2015 16:58:18 +0000 (18:58 +0200)]
company--merge-async: Handle mixed sync/async and immediate callbacks better

Fixes #315

9 years agoAllow for a %s(test) spec in docstring
Oleh Krehel [Wed, 4 Mar 2015 16:34:42 +0000 (17:34 +0100)]
Allow for a %s(test) spec in docstring

* hydra.el (hydra-set-transient-map): Avoid compiler warnings.
(hydra--format): Add s? to regex.

- %(test) will translate to (format "%S" (test))
- %s(test) will translate to (format "%s" (test))

The width specifiers should work for both, e.g. % -10(test) or %
-10s(test).

Example:

(defhydra hydra-marked-items (dired-mode-map "")
  "
Number of marked items: %(length (dired-get-marked-files))
Directory size: %s(shell-command-to-string \"du -hs\")
"
  ("m" dired-mark "mark"))

Fixes #65.

9 years agolv.el (lv-window): Bind `golden-ratio-mode' to nil
Oleh Krehel [Wed, 4 Mar 2015 14:37:14 +0000 (15:37 +0100)]
lv.el (lv-window): Bind `golden-ratio-mode' to nil

Re #64.

9 years agoavy-jump.el (avi-goto-word-0): Simplify
Oleh Krehel [Tue, 3 Mar 2015 22:49:32 +0000 (23:49 +0100)]
avy-jump.el (avi-goto-word-0): Simplify

* avy-jump.el (avi-goto-word-1): Simplify.

9 years agoavy-jump.el (avi--overlay): Fix bug
Oleh Krehel [Tue, 3 Mar 2015 22:49:09 +0000 (23:49 +0100)]
avy-jump.el (avi--overlay): Fix bug

9 years agoavy-jump.el (avi--regex-candidates): Add optional bounds
Oleh Krehel [Tue, 3 Mar 2015 22:48:44 +0000 (23:48 +0100)]
avy-jump.el (avi--regex-candidates): Add optional bounds

9 years agoavy-jump.el: Major update
Oleh Krehel [Tue, 3 Mar 2015 20:20:23 +0000 (21:20 +0100)]
avy-jump.el: Major update

* avy-jump.el (avy-jump): Change prefix to "avi-".
(avi-keys): Rename from `avy-keys'.
(avi-background): New defcustom.
(avi-lead-face): New defface.
(avi--goto): Update.
(avi--process): Update signature.
(avi--regex-candidates): Update format.
(avi--overlay): New defun.
(avi--overlay-pre): New defun.
(avi--overlay-post): New defun.
(avi-goto-char): Rename from `avy-jump-char'.
(avi-goto-char-2): Rename from `avy-jump-double-char'.
(avi-isearch): Rename from `avy-jump-isearch'.
(avi-goto-word-0): Rename from `avy-jump-zero-word'.
(avi-goto-word-1): Rename from `avy-jump-one-word'.
(avi-goto-line): Rename from `avy-jump-line'.
(avi--line): New defun.
(avi-copy-line): New defun.
(avi-move-line): New defun.
(avi-copy-region): New defun.

Fixes #21.

9 years agoAdd `aw-leading-char-style' extra-awesome custom var
Oleh Krehel [Tue, 3 Mar 2015 17:12:44 +0000 (18:12 +0100)]
Add `aw-leading-char-style' extra-awesome custom var

* ace-window.el (aw-leading-char-style): When this is `char', the old
  style is used. When this is `path', each window will display the full
  path that can be used to get there. This is a great advantage, since
  you don't need to scan your screen twice, instead reading two (or
  more) chars at once.
(aw--lead-overlay): Update.

* avy.el (avy-traverse): Pass the whole path to WALKER, not just the
  starting point.

9 years agoAdd :timeout option to hydra body
Oleh Krehel [Mon, 2 Mar 2015 20:47:50 +0000 (21:47 +0100)]
Add :timeout option to hydra body

* hydra.el (hydra--make-defun): Call `hydra-timeout' with :timeout if
  it's given.
(hydra-timer): New var to hold the timer.
(hydra-timeout): New function to call `hydra-keyboard-quit' with delay.
(hydra-keyboard-quit): Cancel `hydra-timeout' timer.

Re #34.

9 years ago* timerfunctions.el: Numerous fixes to make it comply with checkdoc
Dave Goel [Mon, 2 Mar 2015 18:58:42 +0000 (13:58 -0500)]
* timerfunctions.el: Numerous fixes to make it comply with checkdoc

Fix compiler warnings.

9 years agoavy-jump.el: add example commands using avy
Oleh Krehel [Mon, 2 Mar 2015 15:13:36 +0000 (16:13 +0100)]
avy-jump.el: add example commands using avy

9 years agoUpdate avy interface
Oleh Krehel [Mon, 2 Mar 2015 12:26:00 +0000 (13:26 +0100)]
Update avy interface

* avy.el (avy-tree): Rename from `avy-read'.
(avy-tree): Replace LEAF with (cons 'leaf LEAF). This way, leafs are
much easier to distinguish - there's no need to know anything about LEAF
structure to distinguish it from an internal node.
(avy-traverse): New defun.
(avy-read): The function that calls `read-char'.

* ace-window.el (aw--lead-overlay): Change arglist.
(aw--make-leading-chars): Remove in favor of `avy-read'.
(aw-select): Use `avy-read'.

* avy-test.el (avy-tree): Update test.

9 years agoCleanup dependency management.
Jackson Ray Hamilton [Sun, 1 Mar 2015 19:10:32 +0000 (11:10 -0800)]
Cleanup dependency management.

9 years agoloc-changes/loc-changes.el: Fix footer
Stefan Monnier [Sun, 1 Mar 2015 16:31:45 +0000 (11:31 -0500)]
loc-changes/loc-changes.el: Fix footer

9 years agohydra.el (hydra--format): Amend key regex
hura [Sat, 28 Feb 2015 01:01:57 +0000 (20:01 -0500)]
hydra.el (hydra--format): Amend key regex

Recognize the '{' and '}' keys.

9 years agoAdd 'packages/loc-changes/' from commit 'efbe022eaeef0ccc54ffe219216974a786c3301c'
rocky [Fri, 27 Feb 2015 23:28:08 +0000 (18:28 -0500)]
Add 'packages/loc-changes/' from commit 'efbe022eaeef0ccc54ffe219216974a786c3301c'

git-subtree-dir: packages/loc-changes
git-subtree-mainline: 771168c071a65dde3d55c320381419917be3aaff
git-subtree-split: efbe022eaeef0ccc54ffe219216974a786c3301c

9 years agoAdd loc-changes:alist-describe to show what marks have been set.
rocky [Fri, 27 Feb 2015 20:52:39 +0000 (15:52 -0500)]
Add loc-changes:alist-describe to show what marks have been set.

9 years agoDon't wrap `hydra-repeat'
Oleh Krehel [Fri, 27 Feb 2015 19:32:09 +0000 (20:32 +0100)]
Don't wrap `hydra-repeat'

* hydra.el (hydra--delete-duplicates): Update.
(hydra--vconcat): Trim trailing spaces.

* hydra-test.el (hydra-red-error): Update test.
(hydra--table): Update test.

9 years agoGo over travis testing.
rocky [Fri, 27 Feb 2015 18:54:19 +0000 (13:54 -0500)]
Go over travis testing.

9 years agoRemove dependency on ace-jump-mode
Oleh Krehel [Fri, 27 Feb 2015 18:16:20 +0000 (19:16 +0100)]
Remove dependency on ace-jump-mode

* avy.el: Add sub-package for building a completion tree.

* avy-test.el: Add.

* Makefile: Add.

* ace-window.el (ace-jump-mode): Don't require.
(avy): Require.
(aw-leading-char-face): Update.
(aw-background-face): New defface.
(aw-list-visual-area): Rename to `aw-window-list'. It returns simple
windows now, instead of visual area structs.
(aw-overlays-lead): New defvar.
(aw-overlays-back): New defvar.
(ace-window-mode): Use own minor mode, instead of `ace-jump-mode'.
(aw--done): Update.
(aw--lead-overlay): New defun.
(aw--make-leading-chars): New defun.
(aw--remove-leading-chars): New defun.
(aw--make-backgrounds): New defun.
(aw-select): Simplify.
(ace-window): Update doc.
(aw-visual-area<): Rename to `aw-window<'. It deals with simple windows
now.

9 years agoRevise for FSF release
rocky [Fri, 27 Feb 2015 18:11:28 +0000 (13:11 -0500)]
Revise for FSF release

9 years agoAdd some features for generating tables
Oleh Krehel [Fri, 27 Feb 2015 18:05:43 +0000 (19:05 +0100)]
Add some features for generating tables

* hydra.el (hydra--pad): New defun.
(hydra--matrix): New defun.
(hydra--cell): New defun.
(hydra--vconcat): New defun.
(hydra-cell-format): New defcustom.
(hydra--table): New defun.
(hydra-reset-radios): New defun.
(defhydra): Allow docstring to be eval-able.
(defhydradio): Don't define `.../reset-radios', instead define
`.../names' that can be passed to `hydra-reset-radios'.
(hydra-multipop): New defmacro.
(hydra--radio): Update the order - the docstring is now a mandatory
second arg, value is the optional third.

* hydra-test.el (defhydradio): Update test.
(hydra--pad): Add test.
(hydra--matrix): Add test.
(hydra--cell): Add test.
(hydra--vconcat): Add test.
(hydra--table): Add test.

9 years agoAdd `hydra-repeat': hydra-specific `repeat'
Oleh Krehel [Fri, 27 Feb 2015 12:15:13 +0000 (13:15 +0100)]
Add `hydra-repeat': hydra-specific `repeat'

* hydra.el (hydra-repeat): New defun.
(hydra-repeat--command): New defvar.
(hydra-repeat--prefix-arg): New defvar.

Example:

(defhydra hydra-vi ()
  "vi"
  ("h" backward-char)
  ("j" next-line)
  ("k" previous-line)
  ("l" forward-char)
  ("." hydra-repeat))
(global-set-key (kbd "C-v") 'hydra-vi/body)

"C-v 4l.." will result in movement forward by 4 chars 3 times: first
time from "4l", the other two from "..".

Fixes #59.

9 years agoCleanup.
Jackson Ray Hamilton [Fri, 27 Feb 2015 08:33:00 +0000 (00:33 -0800)]
Cleanup.

9 years agohydra.el (hydra--format): Amend key regex
François Févotte [Thu, 26 Feb 2015 15:43:34 +0000 (11:43 -0400)]
hydra.el (hydra--format): Amend key regex

Recognize the '=' key.

9 years agoCleanup.
Jackson Ray Hamilton [Thu, 26 Feb 2015 09:29:58 +0000 (01:29 -0800)]
Cleanup.

9 years agoUpdate outlines
Oleh Krehel [Wed, 25 Feb 2015 19:45:10 +0000 (20:45 +0100)]
Update outlines

9 years ago* load-relative/test/test-file.el: Fix up copyright
Stefan Monnier [Wed, 25 Feb 2015 17:31:03 +0000 (12:31 -0500)]
* load-relative/test/test-file.el: Fix up copyright

9 years agoAllow customizing the leading char face
Oleh Krehel [Wed, 25 Feb 2015 16:49:37 +0000 (17:49 +0100)]
Allow customizing the leading char face

* ace-window.el (aw-leading-char-face): New face.
(aw-keys):
(aw-ignore-on):
(aw-background):
(aw-scope): No need for :group.
(aw-ignored-buffers): Add type.
(ace-window-end-hook): Remove deprecated var.
(ace-window-end-once-hook): Remove deprecated var.
(aw-select): Inline `ace-jump-populate-overlay-to-search-tree'.

Fixes #19.

Example of customization:

(custom-set-faces
 '(aw-leading-char-face
   ((t (:inherit ace-jump-face-foreground :height 2.0)))))

You can customize interactively with "M-x" `customize-group'
`ace-window'.

9 years agohydra.el (hydra-key-format-spec): set default to "%s"
Oleh Krehel [Wed, 25 Feb 2015 15:56:19 +0000 (16:56 +0100)]
hydra.el (hydra-key-format-spec): set default to "%s"

* hydra-test.el (hydra-format): Update test.
(hydra-format-with-sexp): Update test.

9 years agohydra.el (hydra--format): Amend key regex
Oleh Krehel [Wed, 25 Feb 2015 10:37:58 +0000 (11:37 +0100)]
hydra.el (hydra--format): Amend key regex

Re #50.

9 years agoMerge commit '0e1d1440e4819d76cc68b213431722884af66e89'
rocky [Wed, 25 Feb 2015 01:24:48 +0000 (20:24 -0500)]
Merge commit '0e1d1440e4819d76cc68b213431722884af66e89'

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa
rocky [Wed, 25 Feb 2015 01:22:49 +0000 (20:22 -0500)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa

9 years agoBump version number
rocky [Wed, 25 Feb 2015 01:22:16 +0000 (20:22 -0500)]
Bump version number

9 years agoThank you, Phil Lord!
rocky [Wed, 25 Feb 2015 01:21:53 +0000 (20:21 -0500)]
Thank you, Phil Lord!

9 years agoRemove hydra-exit
Oleh Krehel [Tue, 24 Feb 2015 18:20:46 +0000 (19:20 +0100)]
Remove hydra-exit

* hydra-test.el: Revert tests.

* hydra.el (hydra-exit): Delete, since `hydra-exit' doesn't run :post.
(hydra--delete-duplicates): Simplify.
(defhydra): Simplify.

Hydras with nil body will still not be bound in outside keymaps.

Re #48
Fixes #53

9 years agolv.el (lv-window): set-window-parameter 'no-other-window
Oleh Krehel [Tue, 24 Feb 2015 17:34:11 +0000 (18:34 +0100)]
lv.el (lv-window): set-window-parameter 'no-other-window

9 years agoDon't bind nil heads in outside keymaps
Oleh Krehel [Tue, 24 Feb 2015 14:50:49 +0000 (15:50 +0100)]
Don't bind nil heads in outside keymaps

* hydra.el (hydra-exit): New command to be used for nil heads.
(hydra--delete-duplicates): Update for `hydra-exit'.
(defhydra): Don't bind `hydra-exit' in outside keymaps.

* hydra-test.el (hydra-blue-toggle): Update test.
(hydra-amaranth-vi): Update test.

Fixes #48.

9 years agoImprove handling of heads with duplicate cmd
Oleh Krehel [Tue, 24 Feb 2015 14:31:46 +0000 (15:31 +0100)]
Improve handling of heads with duplicate cmd

hydra.el (hydra--delete-duplicates): Modify :cmd-name property of
duplicate head to to name of the head that it duplicates.
Heads are considered duplicate if their CMD and COLOR is the same.
The first of the duplicates gets a defun, the rest call it.

* hydra.el (defhydra): Bring heads into a uniform notation. If a
  docstring is missing, set it to "". Set :cmd-name property to the
  head's name.

* hydra-test.el: Add tests.

Fixes #52.

9 years agoAmend the key regex in docstring to include <>
Oleh Krehel [Tue, 24 Feb 2015 11:02:27 +0000 (12:02 +0100)]
Amend the key regex in docstring to include <>

Re #50.

9 years agoSimplify the hint part of each head
Oleh Krehel [Tue, 24 Feb 2015 10:42:00 +0000 (11:42 +0100)]
Simplify the hint part of each head

* hydra.el (defhydra): All heads that don't have a hint, will get "" as
  hint. The behavior will remain the same.
(hydra--head-property): Simplify, since plist is now always `cdddr'.
(hydra--hint): Simplify, heads always have length at least 3. Simplify,
third element is always a string or nil.

9 years agoAllow for a custom key format spec in docstrings
Oleh Krehel [Mon, 23 Feb 2015 22:03:13 +0000 (23:03 +0100)]
Allow for a custom key format spec in docstrings

* hydra.el (hydra-key-format-spec): New defcustom.
(hydra--format): Use `hydra-key-format-spec'. Allow for 0-9 and / in key
bindings.

Here's an example of how to use a flexible format spec for each key:

(let (hydra-key-format-spec)
  (defhydra hydra-zoom (global-map "<f2>")
    "
zoom: _g_reater _ -5l_esser re_ 7c_enter zer_0_"
    ("g" text-scale-increase nil)
    ("l" text-scale-decrease nil)
    ("c" recenter-top-bottom nil)
    ("0" (text-scale-set 0) nil :exit t)))

Fixes #50.

9 years agoRename compat toggle - :nonheads -> :foreign-keys
Oleh Krehel [Mon, 23 Feb 2015 17:40:12 +0000 (18:40 +0100)]
Rename compat toggle - :nonheads -> :foreign-keys

* hydra-test.el: Add tests.

* hydra.el (hydra--head-color): Update.
(hydra--body-foreign-keys): New defun.
(hydra--body-color): Update.
(hydra--handle-nonhead): Update.

* README.md: Update.

9 years agohydra.el (hydra-verbose): New defcustom
Oleh Krehel [Mon, 23 Feb 2015 15:45:45 +0000 (16:45 +0100)]
hydra.el (hydra-verbose): New defcustom

* hydra.el (hydra--head-color): Switch from `error' to `hydra--complain'
  in one case.
(hydra--complain): New defun.

Fixes #47.

9 years agohydra.el (hydra--make-defun): Update signature
Oleh Krehel [Mon, 23 Feb 2015 14:46:48 +0000 (15:46 +0100)]
hydra.el (hydra--make-defun): Update signature

9 years agoAvoid generating multiple defuns with same name
Oleh Krehel [Mon, 23 Feb 2015 14:12:17 +0000 (15:12 +0100)]
Avoid generating multiple defuns with same name

* hydra.el (hydra--head-name): New defun.
(hydra--delete-duplicates): New defun.
(defhydra): Update to use `hydra--delete-duplicates' and `hydra--head-name'.

9 years agohydra.el (hydra-keyboard-quit): Add
Oleh Krehel [Mon, 23 Feb 2015 13:50:25 +0000 (14:50 +0100)]
hydra.el (hydra-keyboard-quit): Add

* hydra.el (hydra--handle-nonhead): Use `hydra-keyboard-quit'.
(defhydra): Work-around multiple definitions.

* hydra-test.el (hydra-red-error): Update test.
(hydra-blue-toggle): Update test.

9 years agoFix :exit t / :exit nil inheritance issue
Oleh Krehel [Mon, 23 Feb 2015 10:54:29 +0000 (11:54 +0100)]
Fix :exit t / :exit nil inheritance issue

* hydra-test.el (hydra-compat-colors): Add test.

* hydra.el (hydra--aggregate-color): New defun.
(hydra--head-color): Update.

Fixes #46.

9 years agoUpdate README.md
hura [Sun, 22 Feb 2015 20:14:26 +0000 (15:14 -0500)]
Update README.md

9 years agoMerge pull request #5 from phillord/feature/find-file-relative
R. Bernstein [Sat, 21 Feb 2015 21:45:29 +0000 (16:45 -0500)]
Merge pull request #5 from phillord/feature/find-file-relative

Change require to path relative load. Many thanks. I appreciate all of the good work.

9 years agoCommentary updates for new functions.
Phillip Lord [Sat, 21 Feb 2015 21:37:57 +0000 (21:37 +0000)]
Commentary updates for new functions.

9 years agoAdd :body-pre switch
Oleh Krehel [Sat, 21 Feb 2015 16:44:34 +0000 (17:44 +0100)]
Add :body-pre switch

It will be run as the first thing in the prefix/body function.

re #41

Example:

    (defvar hydra-vi/init-pos nil)
    (defhydra hydra-vi (:body-pre (setq hydra-vi/init-pos (point))
                        :color pink)
      "vi"
      ;; arrows
      ("h" backward-char)
      ("j" next-line)
      ("k" previous-line)
      ("l" forward-char)
      ;; exit points
      ("q" (goto-char hydra-vi/init-pos) "ins" :exit t)
      ("C-n" (forward-line 1) nil :exit t)
      ("C-p" (forward-line -1) nil :exit t))

9 years agohydra-examples.el: Add example 9
Oleh Krehel [Sat, 21 Feb 2015 16:43:40 +0000 (17:43 +0100)]
hydra-examples.el: Add example 9

9 years agoChange require to path relative load.
Phillip Lord [Sat, 21 Feb 2015 13:16:45 +0000 (13:16 +0000)]
Change require to path relative load.