diff options
author | Alex Whitt | 2017-06-06 11:29:17 -0400 |
---|---|---|
committer | Alex Whitt | 2017-06-06 11:29:17 -0400 |
commit | 4c181ba9c4fcb81385f2ea4d45a20e642126e8ab (patch) | |
tree | c435c5b3cdf2627aeff64424baa45a75316f89ba /emacs-buffer-move.install | |
download | aur-4c181ba9c4fcb81385f2ea4d45a20e642126e8ab.tar.gz |
Initial commit
Diffstat (limited to 'emacs-buffer-move.install')
-rw-r--r-- | emacs-buffer-move.install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/emacs-buffer-move.install b/emacs-buffer-move.install new file mode 100644 index 000000000000..213a850ef0b4 --- /dev/null +++ b/emacs-buffer-move.install @@ -0,0 +1,29 @@ +post_install () { + +cat << EOF + +==> Add this code to your .emacs file to use the mode: + +(require 'buffer-move) + +==> Bind the functions as you please: + +(global-set-key (kbd "<C-S-up>") 'buf-move-up) +(global-set-key (kbd "<C-S-down>") 'buf-move-down) +(global-set-key (kbd "<C-S-left>") 'buf-move-left) +(global-set-key (kbd "<C-S-right>") 'buf-move-right) + +==> Or do the above with use-package: + +(use-package buffer-move + :bind ("C-S-<up>" . buf-move-up) + ("C-S-<down>" . buf-move-down) + ("C-S-<left>" . buf-move-left) + ("C-S-<right>" . buf-move-right)) + +EOF +} + +post_upgrade () { + post_install $1 +} |