Commits

Yuya Nishihara  committed 4158df8

emacs: don't start edit server if sudo

  • Participants
  • Parent commits bc78ae6

Comments (0)

Files changed (1)

 ; for Chrome "Edit with Emacs" extension
 (when (and (daemonp)
            (executable-find "chromium")
+           (not (getenv "SUDO_USER"))
            (require 'edit-server nil t))
   (setq edit-server-new-frame nil)
   (edit-server-start))