spacemacs/layers/+lang/emacs-lisp/funcs.el

23 lines
607 B
EmacsLisp
Raw Normal View History

;;; funcs.el --- Emacs Lisp functions File
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defun spacemacs/nav-find-elisp-thing-at-point-other-window ()
"Find thing under point and go to it another window."
(interactive)
(let ((symb (variable-at-point)))
(if (and symb
(not (equal symb 0))
(not (fboundp symb)))
(find-variable-other-window symb)
(find-function-at-point))))