update packages
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
;;; Code:
|
||||
(use-package deft
|
||||
:commands deft
|
||||
:bind ("C-x C-S-d" . deft-find-file)
|
||||
:config
|
||||
(setq deft-directory "~/Sync")
|
||||
|
||||
@@ -230,7 +230,7 @@ If INTERNAL non-nil then include internal buffers."
|
||||
(not (string= " " (substring head 0 1))))
|
||||
(when (or special ;; check if no star are in the front and back
|
||||
(and (not (string= "*" (substring head 0 1)))
|
||||
(not (string= "*" (subseq head -1)))))
|
||||
(not (string= "*" (cl-subseq head -1)))))
|
||||
(push head new-list)))
|
||||
(setq b-list (cdr b-list)))
|
||||
(nreverse new-list)))
|
||||
@@ -241,7 +241,7 @@ If INTERNAL non-nil then include internal buffers."
|
||||
(while b-list
|
||||
(setq head (car b-list))
|
||||
(when (and (string= "*" (substring head 0 1))
|
||||
(string= "*" (subseq head -1)))
|
||||
(string= "*" (cl-subseq head -1)))
|
||||
(push head new-list))
|
||||
(setq b-list (cdr b-list)))
|
||||
(nreverse new-list)))
|
||||
|
||||
@@ -19,12 +19,20 @@
|
||||
;; ivy
|
||||
|
||||
;;; Code:
|
||||
;; see also Diff-Hl (diff-hl-mode) to see VC diff highlighting in fringes.
|
||||
(use-package magit
|
||||
:load-path (lambda() (concat user-emacs-directory "lisp/magit"))
|
||||
:hook (prog-mode . magit-file-mode)
|
||||
:bind (("C-c M-g" . magit-file-dispatch))
|
||||
:config
|
||||
;; (setq magit-completing-read-function 'magit-builtin-completing-read) ;; if ivy-mode is on then it uses it otherwise set to 'ivy-completing-read
|
||||
;; (setq magit-completing-read-function 'magit-ido-completing-read) ;; Use ido to checkout branches. requires ido-completing-read+
|
||||
|
||||
(defun my-magit-fringe-click (evt)
|
||||
"Toggle section visibility in a magit mode buffer."
|
||||
(interactive "e")
|
||||
(mouse-set-point evt)
|
||||
(magit-section-toggle (magit-current-section)))
|
||||
(define-key magit-mode-map [left-fringe mouse-1] 'my-magit-fringe-click)
|
||||
)
|
||||
|
||||
;; On Windows, we must use Git GUI to enter username and password
|
||||
@@ -46,7 +54,7 @@
|
||||
(use-package diff-hl
|
||||
:load-path (lambda() (concat user-emacs-directory "lisp/diff-hl"))
|
||||
:hook (
|
||||
((prog-mode vc-dir-mode) . turn-on-diff-hl-mode)
|
||||
((prog-mode vc-dir-mode org-mode) . turn-on-diff-hl-mode)
|
||||
(magit-pre-refresh . diff-hl-magit-pre-refresh)
|
||||
(magit-post-refresh . diff-hl-magit-post-refresh)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user