Emacs: Defer TRAMP and atomic-chrome for 5 seconds.
This commit is contained in:
parent
74195acb3c
commit
b1aa40297d
|
@ -1,6 +1,6 @@
|
|||
;;; server.el --- Set up network stuff.. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-02-14T14:46:18+0100>
|
||||
;; Time-stamp: <2020-02-18T16:13:51+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
|||
;; Edit remote files.
|
||||
(unless slow-computer
|
||||
(use-package tramp
|
||||
:defer 5
|
||||
|
||||
:custom
|
||||
(tramp-use-ssh-controlmaster-options nil) ; Don't override SSH config.
|
||||
(tramp-default-method "ssh") ; ssh is faster than scp and supports ports.
|
||||
|
@ -52,28 +54,29 @@
|
|||
(server-start))
|
||||
)
|
||||
|
||||
;; Server for Firefox-extension that allows to use Emacs to edit textareas.
|
||||
;; https://addons.mozilla.org/en-US/firefox/addon/ghosttext/
|
||||
(use-package atomic-chrome
|
||||
:config
|
||||
(atomic-chrome-start-server)
|
||||
;; Server for Firefox-extension that allows to use Emacs to edit textareas.
|
||||
;; https://addons.mozilla.org/en-US/firefox/addon/ghosttext/
|
||||
(use-package atomic-chrome
|
||||
:defer 5
|
||||
:config
|
||||
(atomic-chrome-start-server)
|
||||
|
||||
:custom
|
||||
;; “url” is actually the hostname.
|
||||
(atomic-chrome-url-major-mode-alist
|
||||
'(
|
||||
("^likeable\\.space$" . markdown-mode)
|
||||
("^schlomp\\.space$" . markdown-mode)
|
||||
("^wiki\\.gentoo\\.org$" . mediawiki-mode)
|
||||
("^github\\.com$" . markdown-mode)
|
||||
("^gitlab\\.com$" . markdown-mode)
|
||||
("^gitlab\\.gnome\\.org$" . markdown-mode)
|
||||
))
|
||||
(atomic-chrome-buffer-open-style 'frame)
|
||||
:custom
|
||||
;; “url” is actually the hostname.
|
||||
(atomic-chrome-url-major-mode-alist
|
||||
'(
|
||||
("^likeable\\.space$" . markdown-mode)
|
||||
("^schlomp\\.space$" . markdown-mode)
|
||||
("^wiki\\.gentoo\\.org$" . mediawiki-mode)
|
||||
("^github\\.com$" . markdown-mode)
|
||||
("^gitlab\\.com$" . markdown-mode)
|
||||
("^gitlab\\.gnome\\.org$" . markdown-mode)
|
||||
))
|
||||
(atomic-chrome-buffer-open-style 'frame)
|
||||
|
||||
:hook
|
||||
(atomic-chrome-edit-mode . (lambda () (setq-local fill-column 400)))
|
||||
)
|
||||
:hook
|
||||
(atomic-chrome-edit-mode . (lambda () (setq-local fill-column 400)))
|
||||
)
|
||||
))
|
||||
|
||||
(provide 'net/server)
|
||||
|
|
Loading…
Reference in New Issue
Block a user