Cosmetic fixes for org-contacts
BTW, here's another cosmetic patch. It fixes the following: - Remove some redundant dependencies (already satisfied by Emacs-27.1). - Fix a too-wide docstring. - Use `;;` for comments because `;;;` is for section headers. Stefan
This commit is contained in:
parent
919511eb86
commit
4a592d90f3
1 changed files with 11 additions and 10 deletions
|
@ -6,7 +6,7 @@
|
|||
;; Maintainer: stardiviner <numbchild@gmail.com>
|
||||
;; Keywords: contacts, org-mode, outlines, hypermedia, calendar
|
||||
;; Version: 1.0
|
||||
;; Package-Requires: ((emacs "27.1") (cl-lib "0.7") (org "9.3.4") (gnus "5.13"))
|
||||
;; Package-Requires: ((emacs "27.1") (org "9.3.4"))
|
||||
;; Homepage: https://repo.or.cz/org-contacts.git
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
|
@ -56,11 +56,11 @@
|
|||
|
||||
;;;; Usage:
|
||||
|
||||
;;; How to search?
|
||||
;;; - You can use [M-x org-contacts] command to search.
|
||||
;;;
|
||||
;;; - You can use `org-sparse-tree' [C-c / p] to filter based on a
|
||||
;;; specific property. Or other matcher on `org-sparse-tree'.
|
||||
;; How to search?
|
||||
;; - You can use [M-x org-contacts] command to search.
|
||||
;;
|
||||
;; - You can use `org-sparse-tree' [C-c / p] to filter based on a
|
||||
;; specific property. Or other matcher on `org-sparse-tree'.
|
||||
|
||||
;;; Code:
|
||||
|
||||
|
@ -691,8 +691,9 @@ description."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-contacts-org-complete-function ()
|
||||
"Function used in `completion-at-point-functions' in `org-mode' to complete @name.
|
||||
Usage: (add-hook \\='completion-at-point-functions #\\='org-contacts-org-complete-function nil \\='local)"
|
||||
"completion-at-point function to complete @name in `org-mode'.
|
||||
Usage: (add-hook \\='completion-at-point-functions
|
||||
#\\='org-contacts-org-complete-function nil \\='local)"
|
||||
(when-let* ((end (point))
|
||||
(begin (save-excursion (skip-chars-backward "[:alnum:]@") (point)))
|
||||
(symbol (buffer-substring-no-properties begin end))
|
||||
|
@ -1255,8 +1256,8 @@ are effectively trimmed). If nil, all zero-length substrings are retained."
|
|||
(cdr (reverse proplist))))
|
||||
|
||||
;;;###autoload
|
||||
;;; Add an Org link type `org-contact:' for easy jump to or searching org-contacts headline.
|
||||
;;; link spec: [[org-contact:query][desc]]
|
||||
;; Add an Org link type `org-contact:' for easy jump to or searching org-contacts headline.
|
||||
;; link spec: [[org-contact:query][desc]]
|
||||
(if (fboundp 'org-link-set-parameters)
|
||||
(org-link-set-parameters "org-contact"
|
||||
:follow #'org-contacts-link-open
|
||||
|
|
Loading…
Reference in a new issue