jschaf / powershell.el

An Emacs mode for editing and running Microsoft PowerShell code.
94 stars 30 forks source link

Tips: Speedup launch and exit time #36

Open lynnux opened 11 months ago

lynnux commented 11 months ago

Currently I use those code to speedup launch and exit time:

(use-package powershell
  :commands(powershell)
  :config
  (define-advice powershell (:after ( &rest args) my)
    (remove-hook 'kill-buffer-hook 'powershell-delete-process))
  (define-advice powershell--get-max-window-width (:around (orig-fn &rest args) my)
    (setq powershell--max-window-width 200)))