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/global-variables)
|
||||
(require 's)
|
||||
|
||||
;; Git integration.
|
||||
(use-package git-commit
|
||||
|
@ -33,7 +34,7 @@
|
|||
(put-text-property (point-min)
|
||||
(line-end-position)
|
||||
'face 'bold)
|
||||
(buffer-string)))))
|
||||
(s-chomp (buffer-string))))))
|
||||
(defun my/magit-eldoc-setup ()
|
||||
(add-function :before-until (local 'eldoc-documentation-function)
|
||||
#'my/magit-eldoc-for-commit)
|
||||
|
|
Loading…
Reference in New Issue
Block a user