Consider the following init file:
;; Begin
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "
https://melpa.org/packages/"))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(use-package slime
:ensure t)
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'noerror)
;; End
This will produce a following custom.el file:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages (quote (slime use-package)))
'(tramp-syntax (quote default) nil (tramp)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
For some reason the tramp-syntax line gets added which causes TRAMP to load at startup,
this didn't happen with GNU Emacs 25.3 and it slows down startup while it gets loaded unnecessarily.
This only happens if I specify a custom-file location, if those two last lines are deleted then
the TRAMP line doesn't get added to the init file:
;; Begin
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "
https://melpa.org/packages/"))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(use-package slime
:ensure t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages (quote (slime use-package)))
'(tramp-syntax (quote default) nil (tramp)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
So far this happens only with SLIME and Cider packages.