git: Remove trailing newline from magit-eldoc string.
This commit is contained in:
parent
06c354a217
commit
cbddc0f6ef
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
(require 'basics/package-management)
|
(require 'basics/package-management)
|
||||||
(require 'basics/global-variables)
|
(require 'basics/global-variables)
|
||||||
|
(require 's)
|
||||||
|
|
||||||
;; Git integration.
|
;; Git integration.
|
||||||
(use-package git-commit
|
(use-package git-commit
|
||||||
|
@ -33,7 +34,7 @@
|
||||||
(put-text-property (point-min)
|
(put-text-property (point-min)
|
||||||
(line-end-position)
|
(line-end-position)
|
||||||
'face 'bold)
|
'face 'bold)
|
||||||
(buffer-string)))))
|
(s-chomp (buffer-string))))))
|
||||||
(defun my/magit-eldoc-setup ()
|
(defun my/magit-eldoc-setup ()
|
||||||
(add-function :before-until (local 'eldoc-documentation-function)
|
(add-function :before-until (local 'eldoc-documentation-function)
|
||||||
#'my/magit-eldoc-for-commit)
|
#'my/magit-eldoc-for-commit)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user