-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Labels
Description
Hello!
After windows update emacs stopped working, and when I try to run it, I got this error:
Error in post-command-hook (treemacs--post-command): (wrong-type-argument markerp nil)
treemacs-add-project-to-workspace: Wrong type argument: integer-or-marker-p, nil
Reinstall, recompile didn't help, treemacs window is blank with nothing inside. The config is:
(use-package treemacs
:ensure t
:defer t
:init
;; Set up winum keybinding after winum loads
(with-eval-after-load 'winum
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
:config
;; Delay all config until Treemacs is fully loaded
(with-eval-after-load 'treemacs
(when (eq system-type 'windows-nt)
(setq treemacs-python-executable
"C:/Users/nx023666/AppData/Local/Programs/Python/Python310/python.exe"))
(setq treemacs-collapse-dirs (if treemacs-python-executable 3 0)
treemacs-deferred-git-apply-delay 0.5
treemacs-directory-name-transformer #'identity
treemacs-display-in-side-window nil
treemacs-eldoc-display 'simple
treemacs-file-event-delay 2000
treemacs-file-extension-regex treemacs-last-period-regex-value
treemacs-file-follow-delay 0.2
treemacs-file-name-transformer #'identity
treemacs-follow-after-init t
treemacs-expand-after-init t
treemacs-find-workspace-method 'find-for-file-or-pick-first
treemacs-git-command-pipe ""
treemacs-goto-tag-strategy 'refetch-index
treemacs-header-scroll-indicators '(nil . "^^^^^^")
treemacs-hide-dot-git-directory t
treemacs-indentation 2
treemacs-indentation-string " "
treemacs-is-never-other-window t
treemacs-max-git-entries 5000
treemacs-missing-project-action 'ask
treemacs-move-files-by-mouse-dragging t
treemacs-move-forward-on-expand nil
treemacs-no-png-images nil
treemacs-no-delete-other-windows t
treemacs-project-follow-cleanup nil
treemacs-position 'left
treemacs-read-string-input 'from-child-frame
treemacs-recenter-distance 0.1
treemacs-recenter-after-file-follow nil
treemacs-recenter-after-tag-follow nil
treemacs-recenter-after-project-jump 'always
treemacs-recenter-after-project-expand 'on-distance
treemacs-litter-directories '("/node_modules" "/.venv" "/.cask")
treemacs-project-follow-into-home nil
treemacs-show-cursor nil
treemacs-show-hidden-files t
treemacs-silent-filewatch -1
treemacs-silent-refresh nil
treemacs-sorting 'alphabetic-asc
treemacs-select-when-already-in-treemacs 'move-back
treemacs-space-between-root-nodes t
treemacs-tag-follow-cleanup t
treemacs-tag-follow-delay 1.5
treemacs-text-scale t
treemacs-user-mode-line-format nil
treemacs-user-header-line-format nil
treemacs-wide-toggle-width 70
treemacs-width 35
treemacs-width-increment 1
treemacs-width-is-initially-locked t
treemacs-workspace-switch-cleanup nil
treemacs-text-scale -1)
;; Safe to call these after Treemacs is loaded
(treemacs-resize-icons 15)
(treemacs-follow-mode t)
(treemacs-filewatch-mode -1)
(treemacs-fringe-indicator-mode 'always)
(treemacs-indent-guide-mode -1)
(when treemacs-python-executable
(treemacs-git-commit-diff-mode t))
(pcase (cons (executable-find "git") treemacs-python-executable)
(`(,_ . ,(and exe (pred stringp)))
(treemacs-git-mode 'extended))
(`(,_ . nil)
(treemacs-git-mode 'simple)))
(treemacs-hide-gitignored-files-mode nil)))
;; Keybindings
(use-package treemacs
:bind
(:map global-map
("M-0" . treemacs-select-window)
("C-x t 1" . treemacs-delete-other-windows)
("C-x t t" . treemacs)
("C-x t d" . treemacs-select-directory)
("C-x t B" . treemacs-bookmark)
("C-x t C-t" . treemacs-find-file)
("C-x t M-t" . treemacs-find-tag)))
;; Extensions
(use-package treemacs-projectile
:after (treemacs projectile)
:ensure t)
(use-package treemacs-icons-dired
:hook (dired-mode . treemacs-icons-dired-enable-once)
:ensure t)
(use-package treemacs-magit
:after (treemacs magit)
:ensure t)Emacs version is GNU Emacs 30.1 (build 2, x86_64-w64-mingw32) of 2025-02-23