From aa8b69a0062e25113fbfe6bbd090c8836997dd9a Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Tue, 21 Jun 2016 21:15:56 +0200 Subject: [PATCH] Prevent find-file-at-point from pinging what looks like domains Previously, * typing `gf` in domain names (for example google.com) in normal buffers * typing `` in domain names in the minibuffer would start pinging that domain name. This is not really useful, so disable it. Fixes #2654. --- layers/+distributions/spacemacs-base/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layers/+distributions/spacemacs-base/config.el b/layers/+distributions/spacemacs-base/config.el index e94378442..5c653aa11 100644 --- a/layers/+distributions/spacemacs-base/config.el +++ b/layers/+distributions/spacemacs-base/config.el @@ -62,6 +62,9 @@ It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'." ;; Scroll compilation to first error or end (setq compilation-scroll-output 'first-error) +;; Don't try to ping things that look like domain names +(setq ffap-machine-p-known 'reject) + ;; --------------------------------------------------------------------------- ;; Edit ;; ---------------------------------------------------------------------------