]> code.delx.au - gnu-emacs-elpa/commitdiff
Add "make compile" and "make run"
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 5 May 2015 12:59:20 +0000 (14:59 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 5 May 2015 12:59:20 +0000 (14:59 +0200)
Re #37

Makefile
avy-init.el [new file with mode: 0644]

index 4f0a64001858976e1829decfeab472c5fce86c2f..69da5870f7d932ec0a96bb74c5ea9af2afd7a37f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-EMACS = emacs
+emacs ?= emacs
 # EMACS = emacs-24.3
 
 LOAD = -l avy.el -l avy-test.el
@@ -10,5 +10,11 @@ all: test
 test:
        $(EMACS) -batch $(LOAD) -f ert-run-tests-batch-and-exit
 
+compile:
+       $(emacs) -batch -l avy-init.el
+
+run:
+       $(emacs) -Q -l avy-init.el
+
 clean:
        rm -f *.elc
diff --git a/avy-init.el b/avy-init.el
new file mode 100644 (file)
index 0000000..929a2c6
--- /dev/null
@@ -0,0 +1,27 @@
+;;; avy-init.el --- bare avy init
+
+;; 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/>.
+
+(add-to-list 'load-path default-directory)
+(require 'ace-window)
+(require 'avy-jump)
+(mapc #'byte-compile-file '("avy.el" "avy-jump.el" "ace-window.el"))
+(global-set-key (kbd "C-c j") 'avi-goto-char)
+(global-set-key (kbd "C-'") 'avi-goto-char-2)