all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* .emacs warning
@ 2017-07-11  4:26 Jude DaShiell
  2017-07-12 17:52 ` Michael Heerdegen
  0 siblings, 1 reply; 4+ messages in thread
From: Jude DaShiell @ 2017-07-11  4:26 UTC (permalink / raw)
  To: help-gnu-emacs

Symbols variable is void on following code.

cut here.
(setq calendar-location-name "Ottsville, PA")
(defalias 'gk-urls-external-browser 'browse-url-xdg-open)

(defun gk-browse-url (&rest args)
   "Prompt for whether or not to browse with EWW, if no browse
with external browser."
   (apply
    (if (y-or-n-p "Browse with EWW? ")
        'eww-browse-url
      'gk-urls-external-browser)
    args))

(setq browse-url-browser-function #'gk-browse-url)

    The code should be self-explanatory, but let me save you the read: it'll make a y-or-n prompt asking whether or not to
    use EWW to browse, if you hit n, it invokes your default browser.


cut here.
I'm using emacs 26 and once emacs starts up the code appears to work.
What is needed to clear the warning?

-- 




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-12 18:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-11  4:26 .emacs warning Jude DaShiell
2017-07-12 17:52 ` Michael Heerdegen
2017-07-12 17:58   ` Jude DaShiell
2017-07-12 18:10     ` Michael Heerdegen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.