emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 6a0acfc 10/17: Add "make compile" and "make run"


From: Oleh Krehel
Subject: [elpa] master 6a0acfc 10/17: Add "make compile" and "make run"
Date: Fri, 08 May 2015 13:43:42 +0000

branch: master
commit 6a0acfc14f4dfdb6f45293ba149dd9796d0a49bd
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Add "make compile" and "make run"
    
    Re #37
---
 Makefile    |    8 +++++++-
 avy-init.el |   27 +++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 4f0a640..69da587 100644
--- 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
index 0000000..929a2c6
--- /dev/null
+++ b/avy-init.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]