Browse Source

Add comment

master
10sr 5 years ago
parent
commit
949863b04e
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      emacs.el

+ 7
- 6
emacs.el View File

@@ -1,6 +1,6 @@
;;; emacs.el --- 10sr emacs initialization ;;; emacs.el --- 10sr emacs initialization


;; Time-stamp: <2018-10-18 16:53:25 JST 10sr>
;; Time-stamp: <2018-10-18 17:01:09 JST 10sr>


;;; Code: ;;; Code:


@@ -1692,8 +1692,8 @@ and search from projectile root (if projectile is available)."
(safe-require-or-eval 'projectile) (safe-require-or-eval 'projectile)
(projectile-project-p)) (projectile-project-p))
(projectile-with-default-dir (projectile-project-root) (projectile-with-default-dir (projectile-project-root)
(compilation-start command-args
'grep-mode))
(compilation-start command-args
'grep-mode))
(compilation-start command-args (compilation-start command-args
'grep-mode))) 'grep-mode)))


@@ -1711,8 +1711,8 @@ and search from projectile root (if projectile is available)."
(if (safe-require-or-eval 'projectile) (if (safe-require-or-eval 'projectile)
(projectile-with-default-dir (or (projectile-project-root) (projectile-with-default-dir (or (projectile-project-root)
default-directory) default-directory)
(compilation-start command-args
'grep-mode))
(compilation-start command-args
'grep-mode))
(compilation-start command-args (compilation-start command-args
'grep-mode)))) 'grep-mode))))


@@ -2336,7 +2336,7 @@ TYPE is target object type."
(erase-buffer) (erase-buffer)
(insert-buffer-substring buf))))) (insert-buffer-substring buf)))))


(require 'ansi-color)
(require 'ansi-color)
(defun git-walktree--open-treeish (commitish path treeish) (defun git-walktree--open-treeish (commitish path treeish)
"Open git tree buffer of TREEISH." "Open git tree buffer of TREEISH."
(cl-assert path) (cl-assert path)
@@ -2386,6 +2386,7 @@ TYPE is target object type."
"--abbrev" "--abbrev"


treeish) treeish)
;; TODO: Somehow text properties are stripped here
(git-walktree--replace-into buf)))) (git-walktree--replace-into buf))))
(git-walktree-mode) (git-walktree-mode)
(set-buffer-modified-p nil) (set-buffer-modified-p nil)


Loading…
Cancel
Save