doomemacs/init/init-lisp.el
2015-05-07 03:19:24 -04:00

19 lines
557 B
EmacsLisp

;; Elisp ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
;; Real go-to-definition for elisp
(bind 'motion emacs-lisp-mode-map "gd"
(λ (let ((func (function-called-at-point)))
(if func (find-function func)))))
;; Go-to-definition in other buffer
(bind 'motion emacs-lisp-mode-map "gD"
(λ (let ((func (function-called-at-point)))
(if func (find-function-other-window func)))))
;; TODO Add clojure support
;; TODO Add scheme support
(provide 'init-lisp)
;;; init-elisp.el ends here