pkg update and first config fix

org-brain not working, add org-roam
This commit is contained in:
2022-12-19 23:02:34 +01:00
parent 02b3e07185
commit 82f05baffe
885 changed files with 356098 additions and 36993 deletions

View File

@@ -277,8 +277,8 @@ Example:
(cl-subseq recentf-list 0 20))
(ivy-set-sources
'counsel-locate
'((small-recentf)
\\='counsel-locate
\\='((small-recentf)
(original-source)))"
(setq ivy--sources-list
(plist-put ivy--sources-list cmd sources)))
@@ -433,7 +433,9 @@ the restoring themselves.")
(end (region-end))
(eol (save-excursion (goto-char beg) (line-end-position))))
(buffer-substring-no-properties beg (min end eol))))
((thing-at-point 'url))
((let ((url (thing-at-point 'url)))
;; Work around `https://bugs.gnu.org/58091'.
(and (stringp url) url)))
((and (eq (ivy-state-collection ivy-last) #'read-file-name-internal)
(let ((inhibit-message t)
(ffap-machine-p-known 'reject))
@@ -1822,7 +1824,7 @@ Possible choices: `ivy--regex', `regexp-quote',
`ivy--regex-plus', `ivy--regex-fuzzy', `ivy--regex-ignore-order'.
If a function returns a list, it should format like this:
'((\"matching-regexp\" . t) (\"non-matching-regexp\") ...).
\\='((\"matching-regexp\" . t) (\"non-matching-regexp\") ...).
The matches will be filtered in a sequence, you can mix the
regexps that should match and that should not match as you
@@ -2202,18 +2204,18 @@ customizations apply to the current completion session."
(ivy-call)))
(defun ivy--update-history (hist)
(let ((item
(if (or (string= ivy-text "")
(eq
(plist-get (ivy-state-extra-props ivy-last) :caller)
'ivy-completing-read)
(eq (ivy-state-history ivy-last) 'file-name-history))
(ivy-state-current ivy-last)
ivy-text)))
(cond ((equal item ""))
((stringp item)
(set hist (cons (propertize item 'ivy-index ivy--index)
(delete item (symbol-value hist))))))))
(unless (eq hist t)
(let ((item
(if (or (string= ivy-text "")
(eq (plist-get (ivy-state-extra-props ivy-last) :caller)
#'ivy-completing-read)
(eq (ivy-state-history ivy-last) 'file-name-history))
(ivy-state-current ivy-last)
ivy-text)))
(cond ((equal item ""))
((stringp item)
(set hist (cons (propertize item 'ivy-index ivy--index)
(delete item (symbol-value hist)))))))))
(defun ivy--cleanup ()
;; Fixes a bug in ESS, #1660
@@ -3205,10 +3207,11 @@ parts beyond their respective faces `ivy-confirm-face' and
(sort (copy-sequence collection) sort)
collection)))
(defcustom ivy-magic-slash-non-match-action 'ivy-magic-slash-non-match-cd-selected
"Action to take when a slash is added to the end of a non existing directory.
Possible choices are 'ivy-magic-slash-non-match-cd-selected,
'ivy-magic-slash-non-match-create, or nil"
(defcustom ivy-magic-slash-non-match-action
'ivy-magic-slash-non-match-cd-selected
"Action to take when a slash is appended to a nonexistent directory.
Possible choices are `ivy-magic-slash-non-match-cd-selected',
`ivy-magic-slash-non-match-create', or nil"
:type '(choice
(const :tag "Use currently selected directory"
ivy-magic-slash-non-match-cd-selected)
@@ -4846,7 +4849,7 @@ This list can be rotated with `ivy-rotate-preferred-builders'."
(defun ivy--label-and-delete-dups (entries)
"Label ENTRIES with history indices."
(let ((ht (make-hash-table :test 'equal))
(let ((ht (and entries (make-hash-table :test #'equal)))
(idx 0)
entry
accum)
@@ -4857,22 +4860,21 @@ This list can be rotated with `ivy-rotate-preferred-builders'."
(cl-incf idx))
(nreverse accum)))
(defvar ivy--reverse-i-search-symbol nil
"Store the history symbol.")
(defvar ivy--reverse-i-search-history nil
"Store the minibuffer history variable.")
(defun ivy-reverse-i-search-kill ()
"Remove the current item from history"
"Remove the current item from minibuffer history."
(interactive)
(if (not (eolp))
(ivy-kill-line)
(let ((current (ivy-state-current ivy-last)))
(if (symbolp ivy--reverse-i-search-symbol)
(set
ivy--reverse-i-search-symbol
(delete current (symbol-value ivy--reverse-i-search-symbol)))
(ring-remove
ivy--reverse-i-search-symbol
(ring-member ivy--reverse-i-search-symbol (ivy-state-current ivy-last)))))
(let ((current (ivy-state-current ivy-last))
(history ivy--reverse-i-search-history))
(cond ((booleanp history))
((symbolp history)
(set history (delete current (symbol-value history))))
((ring-p history)
(ring-remove history (ring-member history current)))))
(ivy--kill-current-candidate)))
(defvar ivy-reverse-i-search-map
@@ -4883,20 +4885,17 @@ This list can be rotated with `ivy-rotate-preferred-builders'."
(defun ivy-history-contents (history)
"Copy contents of HISTORY.
A copy is necessary so that we don't clobber any string attributes.
Also set `ivy--reverse-i-search-symbol' to HISTORY."
(setq ivy--reverse-i-search-symbol history)
(cond ((symbolp history)
(ivy--label-and-delete-dups
(copy-sequence (symbol-value history))))
((ring-p history)
(ivy--label-and-delete-dups
(when (> (ring-size history) 0)
(ring-elements history))))
((sequencep history)
(ivy--label-and-delete-dups
(copy-sequence history)))
(t
(error "Expected a symbol, ring, or sequence: %S" history))))
Also set `ivy--reverse-i-search-history' to HISTORY."
(prog1 (ivy--label-and-delete-dups
(cond ((booleanp history) ())
((symbolp history)
(copy-sequence (symbol-value history)))
((ring-p history)
(ring-elements history))
((sequencep history)
(copy-sequence history))
((error "Expected a symbol, ring, or sequence: %S" history))))
(setq ivy--reverse-i-search-history history)))
(defun ivy-reverse-i-search ()
"Enter a recursive `ivy-read' session using the current history.
@@ -4966,6 +4965,7 @@ buffer would modify `ivy-last'.")
(define-key map (kbd "q") 'quit-window)
(define-key map (kbd "R") 'read-only-mode)
(ivy-define-key map (kbd "C-d") 'ivy-occur-delete-candidate)
(ivy-define-key map (kbd "F") 'ivy-occur-flush-lines)
map)
"Keymap for Ivy Occur mode.")
@@ -5067,6 +5067,12 @@ When `ivy-calling' isn't nil, call `ivy-occur-press'."
(delete-region (line-beginning-position)
(1+ (line-end-position)))))
(defun ivy-occur-flush-lines ()
"Delete lines matching regex."
(interactive)
(let ((inhibit-read-only t))
(call-interactively 'flush-lines)))
(define-derived-mode ivy-occur-grep-mode grep-mode "Ivy-Occur"
"Major mode for output from \\[ivy-occur].