Emacs: Bugfix in my/switch-project().

Look for frame-width instead of window-width when deciding if treemacs is to be opened.
This commit is contained in:
tastytea 2020-03-27 14:01:30 +01:00
parent d725fab455
commit eae07712e3
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-27T00:04:55+0100>
;; Time-stamp: <2020-03-27T14:01:23+0100>
;;; Commentary:
@ -110,7 +110,7 @@ collapse other projects."
(if (member 'counsel-projectile-mode minor-mode-list)
(counsel-projectile-find-file)
(projectile-find-file))
(when (>= (window-total-width) 120)
(when (>= (frame-width) 120)
(treemacs-add-and-display-current-project)
(treemacs-collapse-other-projects)
(other-window 1)))