pkg update and first config fix
org-brain not working, add org-roam
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
;; Maintainer: Łukasz Gruner <lukasz@gruner.lu>
|
||||
;; Version: 6
|
||||
;; Package-Requires: ((org "8"))
|
||||
;; Homepage: https://bitbucket.org/ukaszg/org-eldoc
|
||||
;; Homepage: https://git.sr.ht/~bzg/org-contrib
|
||||
;; Created: 25/05/2014
|
||||
;; Keywords: eldoc, outline, breadcrumb, org, babel, minibuffer
|
||||
|
||||
@@ -81,11 +81,13 @@
|
||||
": "
|
||||
(mapconcat
|
||||
(lambda (elem)
|
||||
(when (and (cdr elem) (not (string= "" (cdr elem))))
|
||||
(when-let* ((val (and (cdr elem)
|
||||
(format "%s" (cdr elem))))
|
||||
(_ (not (string-empty-p val))))
|
||||
(concat
|
||||
(propertize (symbol-name (car elem)) 'face 'org-list-dt)
|
||||
" "
|
||||
(propertize (cdr elem) 'face 'org-verbatim)
|
||||
(propertize val 'face 'org-verbatim)
|
||||
" ")))
|
||||
hdr-args " ")))))))
|
||||
|
||||
@@ -141,40 +143,46 @@
|
||||
(org-eldoc-get-breadcrumb)
|
||||
(org-eldoc-get-src-header)
|
||||
(let ((lang (org-eldoc-get-src-lang)))
|
||||
(cond ((or
|
||||
(string= lang "emacs-lisp")
|
||||
(string= lang "elisp"))
|
||||
(cond ((and (boundp 'eldoc-documentation-functions) ; Emacs>=28
|
||||
(fboundp 'elisp-eldoc-var-docstring)
|
||||
(fboundp 'elisp-eldoc-funcall))
|
||||
(let ((eldoc-documentation-functions
|
||||
'(elisp-eldoc-var-docstring elisp-eldoc-funcall)))
|
||||
(eldoc-print-current-symbol-info)))
|
||||
((fboundp 'elisp-eldoc-documentation-function)
|
||||
(elisp-eldoc-documentation-function))
|
||||
(t ; Emacs<25
|
||||
(let (eldoc-documentation-function)
|
||||
(eldoc-print-current-symbol-info)))))
|
||||
((or
|
||||
(string= lang "c") ;; https://github.com/nflath/c-eldoc
|
||||
(string= lang "C")) (when (require 'c-eldoc nil t)
|
||||
(c-eldoc-print-current-symbol-info)))
|
||||
;; https://github.com/zenozeng/css-eldoc
|
||||
((string= lang "css") (when (require 'css-eldoc nil t)
|
||||
(css-eldoc-function)))
|
||||
;; https://github.com/zenozeng/php-eldoc
|
||||
((string= lang "php") (when (require 'php-eldoc nil t)
|
||||
(php-eldoc-function)))
|
||||
((or
|
||||
(string= lang "go")
|
||||
(string= lang "golang")) (when (require 'go-eldoc nil t)
|
||||
(go-eldoc--documentation-function)))
|
||||
(t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang))
|
||||
(callback (car args)))
|
||||
(when (functionp doc-fun)
|
||||
(if (functionp callback)
|
||||
(funcall doc-fun callback)
|
||||
(funcall doc-fun)))))))))
|
||||
(cond
|
||||
((string= lang "org") ;Prevent inf-loop for Org src blocks
|
||||
nil)
|
||||
((or
|
||||
(string= lang "emacs-lisp")
|
||||
(string= lang "elisp"))
|
||||
(cond ((and (boundp 'eldoc-documentation-functions) ; Emacs>=28
|
||||
(fboundp 'elisp-eldoc-var-docstring)
|
||||
(fboundp 'elisp-eldoc-funcall))
|
||||
(let ((eldoc-documentation-functions
|
||||
'(elisp-eldoc-var-docstring elisp-eldoc-funcall)))
|
||||
(eldoc-print-current-symbol-info)))
|
||||
((fboundp 'elisp-eldoc-documentation-function)
|
||||
(elisp-eldoc-documentation-function))
|
||||
(t ; Emacs<25
|
||||
(let (eldoc-documentation-function)
|
||||
(eldoc-print-current-symbol-info)))))
|
||||
((or
|
||||
(string= lang "c") ;; https://github.com/nflath/c-eldoc
|
||||
(string= lang "C"))
|
||||
(when (require 'c-eldoc nil t)
|
||||
(c-eldoc-print-current-symbol-info)))
|
||||
;; https://github.com/zenozeng/css-eldoc
|
||||
((string= lang "css") (when (require 'css-eldoc nil t)
|
||||
(css-eldoc-function)))
|
||||
;; https://github.com/zenozeng/php-eldoc
|
||||
((string= lang "php") (when (require 'php-eldoc nil t)
|
||||
(php-eldoc-function)))
|
||||
((or
|
||||
(string= lang "go")
|
||||
(string= lang "golang"))
|
||||
(when (require 'go-eldoc nil t)
|
||||
(go-eldoc--documentation-function)))
|
||||
(t
|
||||
(let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang))
|
||||
(callback (car args)))
|
||||
(when (functionp doc-fun)
|
||||
(if (functionp callback)
|
||||
(funcall doc-fun callback)
|
||||
(funcall doc-fun)))))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun org-eldoc-load ()
|
||||
|
||||
Reference in New Issue
Block a user