Skip to content

Instantly share code, notes, and snippets.

@belden
Created January 29, 2015 15:53
Show Gist options
  • Save belden/62c2efe31b7f370e6378 to your computer and use it in GitHub Desktop.
Save belden/62c2efe31b7f370e6378 to your computer and use it in GitHub Desktop.
extensions to make emacs more useful as an IDE
(defun adama-run-test ()
"Run a file with run_tests"
(interactive)
(setq compile-rpf-command (concat "/home/dev/bin/development-tools/run_tests --verbose " (buffer-file-name)))
(message "compile-rpf-command: %s" compile-rpf-command)
(compile compile-rpf-command)
(other-window 1)
(toggle-read-only)
(other-window 1))
@belden
Copy link
Author

belden commented Jan 29, 2015

Installation

  1. Save the file
mkdir -p ~/.elisp/
curl 'https://gist.githubusercontent.com/belden/62c2efe31b7f370e6378/raw/b55826b61687481bdb4437a72917b5dbd8650b99/adama-test.el' > ~/.elisp/adama-test.el'
  1. Load it up: In your ~/.emacs:
(add-to-list 'load-path "~/.elisp")

(require 'adama-test)
(global-set-key [f5] 'adama-run-test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment