Emacs: Fix mode selection in atomic-chrome.

The extension sends only the hostname.
This commit is contained in:
tastytea 2020-01-22 03:21:50 +01:00
parent c63006ba83
commit dae74639dc
1 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
;;; server.el --- Set up network stuff.. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-01-01T09:01:07+0100>
;; Time-stamp: <2020-01-22T03:21:00+0100>
;;; Commentary:
@ -59,13 +59,14 @@
(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)
("^likeable\\.space$" . markdown-mode)
("^schlomp\\.space$" . markdown-mode)
("^wiki\\.gentoo\\.org$" . mediawiki-mode)
("^github\\.com$" . markdown-mode)
("^gitlab\\.com$" . markdown-mode)
))
(atomic-chrome-buffer-open-style 'frame)
)