Skip to content

Commit

Permalink
Add org bindings; fix clojure-project root heuristic.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Sep 6, 2009
1 parent 6d71efa commit bc907d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion starter-kit-bindings.el
Expand Up @@ -34,7 +34,6 @@
(global-set-key (kbd "C-x M-f") 'ido-find-file-other-window)
(global-set-key (kbd "C-x C-M-f") 'find-file-in-project)
(global-set-key (kbd "C-x f") 'recentf-ido-find-file)
(global-set-key (kbd "C-x C-p") 'find-file-at-point)
(global-set-key (kbd "C-c y") 'bury-buffer)
(global-set-key (kbd "C-c r") 'revert-buffer)
(global-set-key (kbd "M-`") 'file-cache-minibuffer-complete)
Expand Down Expand Up @@ -94,5 +93,9 @@
(let ((case-fold-search isearch-case-fold-search))
(occur (if isearch-regexp isearch-string (regexp-quote isearch-string))))))

;; Org
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)

(provide 'starter-kit-bindings)
;;; starter-kit-bindings.el ends here
3 changes: 3 additions & 0 deletions starter-kit-defuns.el
Expand Up @@ -86,6 +86,9 @@ Symbols matching the text at point are put first in the completion list."
(defun turn-on-whitespace ()
(whitespace-mode t))

(defun turn-on-paredit ()
(paredit-mode t))

(defun turn-off-tool-bar ()
(tool-bar-mode -1))

Expand Down
4 changes: 3 additions & 1 deletion starter-kit-lisp.el
Expand Up @@ -29,6 +29,8 @@
(if (file-exists-p (concat buffer-file-name "c"))
(delete-file (concat buffer-file-name "c"))))))

(define-key emacs-lisp-mode-map (kbd "M-.") 'find-function-at-point)

;;; Clojure

(eval-after-load 'find-file-in-project
Expand All @@ -40,7 +42,7 @@
(interactive (list
(ido-read-directory-name
"Project root: "
(locate-dominating-file default-directory "pom.xml"))))
(locate-dominating-file default-directory "src"))))
(when (get-buffer "*inferior-lisp*")
(kill-buffer "*inferior-lisp*"))
(defvar swank-clojure-extra-vm-args nil)
Expand Down

0 comments on commit bc907d2

Please sign in to comment.