update packages
This commit is contained in:
@@ -16,14 +16,14 @@
|
||||
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
;;; Commentary:
|
||||
;;; Follow mode definition.
|
||||
|
||||
;; Follow mode definition.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'hl-line)
|
||||
(require 'dash)
|
||||
(require 's)
|
||||
(require 'f)
|
||||
(require 'treemacs-customization)
|
||||
(require 'treemacs-rendering)
|
||||
(require 'treemacs-dom)
|
||||
@@ -63,7 +63,7 @@ not visible."
|
||||
(when (and treemacs-window
|
||||
current-file
|
||||
(not (s-starts-with? treemacs--buffer-name-prefix (buffer-name current-buffer)))
|
||||
(f-exists? current-file))
|
||||
(file-exists-p current-file))
|
||||
(-when-let (project-for-file (treemacs--find-project-for-buffer current-file))
|
||||
(with-selected-window treemacs-window
|
||||
(-let [selected-file (--if-let (treemacs-current-button)
|
||||
@@ -100,7 +100,7 @@ not visible."
|
||||
(define-minor-mode treemacs-follow-mode
|
||||
"Toggle `treemacs-follow-mode'.
|
||||
When enabled treemacs will keep track of and focus the currently selected
|
||||
buffer's file. This only applies if the file is within the treemacs root
|
||||
buffer's file. This only applies if the file is within the treemacs root
|
||||
directory.
|
||||
This functionality can also be manually invoked with `treemacs-find-file'."
|
||||
:init-value nil
|
||||
|
||||
Reference in New Issue
Block a user