-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Makefile: New targets - update, compile, plain. Re #34
- Loading branch information
Showing
8 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/Makefile | ||
/init.el | ||
/gh-pages/ | ||
/.cask/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
emacs ?= emacs | ||
|
||
update: | ||
$(emacs) -batch -l targets/install-deps.el | ||
|
||
compile: | ||
$(emacs) -batch -l elpa.el -l targets/compile.el | ||
|
||
plain: | ||
@echo "Using $(shell which $(emacs))..." | ||
@echo "Version: $(shell $(emacs) --version)" | ||
$(emacs) -Q -l elpa.el -l targets/interactive.el README.org | ||
|
||
clean: | ||
rm -f *.elc | ||
|
||
.PHONY: plain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* worf | ||
|
||
**GNU Emacs minor mode that provides vi-like bindings for org-mode** | ||
|
||
See the documentation in [[http://abo-abo.github.io/worf/README.html][HTML]] or [[https://raw.githubusercontent.com/abo-abo/worf/gh-pages/README.org][org]]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(setq package-user-dir | ||
(expand-file-name (format ".cask/%s/elpa" emacs-version))) | ||
(package-initialize) | ||
(add-to-list 'load-path default-directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(setq files '("worf.el")) | ||
(setq byte-compile--use-old-handlers nil) | ||
(mapc #'byte-compile-file files) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
(setq package-user-dir | ||
(expand-file-name (format ".cask/%s/elpa" emacs-version))) | ||
(message "installing in %s ...\n" package-user-dir) | ||
(package-initialize) | ||
(setq package-archives | ||
'(("melpa" . "http://melpa.org/packages/") | ||
("gnu" . "http://elpa.gnu.org/packages/"))) | ||
(package-refresh-contents) | ||
|
||
(defconst worf-dev-packages | ||
'(swiper | ||
ace-link | ||
hydra | ||
zoutline)) | ||
|
||
(dolist (package worf-dev-packages) | ||
(unless (package-installed-p package) | ||
(ignore-errors | ||
(package-install package)))) | ||
|
||
(save-window-excursion | ||
(package-list-packages t) | ||
(condition-case nil | ||
(progn | ||
(package-menu-mark-upgrades) | ||
(package-menu-execute t)) | ||
(error | ||
(message "All packages up to date")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(custom-set-variables | ||
'(inhibit-startup-screen t) | ||
'(scroll-bar-mode nil) | ||
'(show-paren-mode t) | ||
'(tool-bar-mode nil) | ||
'(indent-tabs-mode nil)) | ||
(require 'worf) | ||
(add-hook 'org-mode-hook (lambda () (worf-mode 1))) | ||
(require 'swiper) | ||
(ivy-mode) |