2015-03-02 03:12:09 +00:00
|
|
|
;;; core-spacemacs.el --- Spacemacs Core File
|
2015-01-14 04:12:56 +00:00
|
|
|
;;
|
2016-01-12 02:40:54 +00:00
|
|
|
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
2015-01-14 04:12:56 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
2014-09-24 00:47:20 +00:00
|
|
|
(setq message-log-max 16384)
|
|
|
|
(defconst emacs-start-time (current-time))
|
|
|
|
|
2015-01-03 03:21:35 +00:00
|
|
|
(require 'subr-x nil 'noerror)
|
2016-06-05 04:04:53 +00:00
|
|
|
(require 'page-break-lines)
|
2016-01-07 03:50:13 +00:00
|
|
|
(require 'core-debug)
|
|
|
|
(require 'core-command-line)
|
2015-11-18 18:49:41 +00:00
|
|
|
(require 'core-dotspacemacs)
|
2015-01-27 03:51:47 +00:00
|
|
|
(require 'core-emacs-backports)
|
2015-06-07 03:26:14 +00:00
|
|
|
(require 'core-release-management)
|
2015-04-11 19:10:21 +00:00
|
|
|
(require 'core-auto-completion)
|
2015-08-14 04:50:53 +00:00
|
|
|
(require 'core-display-init)
|
2015-01-27 03:51:47 +00:00
|
|
|
(require 'core-themes-support)
|
|
|
|
(require 'core-fonts-support)
|
|
|
|
(require 'core-spacemacs-buffer)
|
2015-11-28 05:13:31 +00:00
|
|
|
(require 'core-keybindings)
|
2015-03-01 04:33:57 +00:00
|
|
|
(require 'core-toggle)
|
2015-12-11 08:07:15 +00:00
|
|
|
(require 'core-funcs)
|
2015-03-01 04:33:57 +00:00
|
|
|
(require 'core-micro-state)
|
2016-01-21 03:29:15 +00:00
|
|
|
(require 'core-transient-state)
|
2015-05-20 03:39:03 +00:00
|
|
|
(require 'core-use-package-ext)
|
2015-01-02 05:50:21 +00:00
|
|
|
|
2015-01-08 05:34:23 +00:00
|
|
|
(defgroup spacemacs nil
|
|
|
|
"Spacemacs customizations."
|
|
|
|
:group 'starter-kit
|
|
|
|
:prefix 'spacemacs-)
|
|
|
|
|
2015-01-05 05:20:38 +00:00
|
|
|
;; loading progress bar variables
|
2015-03-12 03:46:37 +00:00
|
|
|
(defvar spacemacs-loading-char ?█)
|
|
|
|
(defvar spacemacs-loading-string "")
|
2014-11-17 03:39:03 +00:00
|
|
|
(defvar spacemacs-loading-counter 0)
|
2015-03-12 03:46:37 +00:00
|
|
|
;; (defvar spacemacs-loading-text "Loading")
|
|
|
|
;; (defvar spacemacs-loading-done-text "Ready!")
|
2014-11-17 03:39:03 +00:00
|
|
|
(defvar spacemacs-loading-dots-chunk-count 3)
|
2015-03-12 03:46:37 +00:00
|
|
|
(defvar spacemacs-loading-dots-count (window-total-size nil 'width))
|
2014-11-17 03:39:03 +00:00
|
|
|
(defvar spacemacs-loading-dots-chunk-size
|
|
|
|
(/ spacemacs-loading-dots-count spacemacs-loading-dots-chunk-count))
|
|
|
|
(defvar spacemacs-loading-dots-chunk-threshold 0)
|
|
|
|
|
2016-01-21 13:18:33 +00:00
|
|
|
(defvar spacemacs-post-user-config-hook nil
|
|
|
|
"Hook run after dotspacemacs/user-config")
|
|
|
|
(defvar spacemacs-post-user-config-hook-run nil
|
|
|
|
"Whether `spacemacs-post-user-config-hook' has been run")
|
|
|
|
|
2015-09-12 03:04:01 +00:00
|
|
|
(defvar spacemacs--default-mode-line mode-line-format
|
|
|
|
"Backup of default mode line format.")
|
2016-03-13 01:37:15 +00:00
|
|
|
(defvar spacemacs-initialized nil
|
|
|
|
"Whether or not spacemacs has finished initializing by completing
|
|
|
|
the final step of executing code in `emacs-startup-hook'.")
|
2015-09-12 03:04:01 +00:00
|
|
|
|
2015-03-01 04:33:57 +00:00
|
|
|
(defun spacemacs/init ()
|
2015-10-16 13:17:03 +00:00
|
|
|
"Perform startup initialization."
|
2016-01-07 03:50:13 +00:00
|
|
|
(when spacemacs-debugp (spacemacs/init-debug))
|
2015-12-13 20:32:29 +00:00
|
|
|
;; silence ad-handle-definition about advised functions getting redefined
|
|
|
|
(setq ad-redefinition-action 'accept)
|
2015-12-11 08:07:15 +00:00
|
|
|
;; this is for a smoother UX at startup (i.e. less graphical glitches)
|
|
|
|
(hidden-mode-line-mode)
|
2015-12-13 20:40:48 +00:00
|
|
|
(spacemacs//removes-gui-elements)
|
2015-04-13 01:27:07 +00:00
|
|
|
;; explicitly set the prefered coding systems to avoid annoying prompt
|
|
|
|
;; from emacs (especially on Microsoft Windows)
|
|
|
|
(prefer-coding-system 'utf-8)
|
2016-01-09 17:25:02 +00:00
|
|
|
;; TODO move these variables when evil is removed from the bootstrapped
|
2015-11-18 18:49:41 +00:00
|
|
|
;; packages.
|
2016-01-09 17:25:02 +00:00
|
|
|
(setq-default evil-want-C-u-scroll t
|
|
|
|
;; `evil-want-C-i-jump' is set to nil to avoid `TAB' being
|
|
|
|
;; overlapped in terminal mode. The GUI specific `<C-i>' is used
|
2016-02-15 19:15:29 +00:00
|
|
|
;; instead.
|
2016-01-09 17:25:02 +00:00
|
|
|
evil-want-C-i-jump nil)
|
2015-11-18 18:49:41 +00:00
|
|
|
(dotspacemacs/load-file)
|
2015-12-16 09:38:36 +00:00
|
|
|
(require 'core-configuration-layer)
|
2015-03-02 03:12:09 +00:00
|
|
|
(dotspacemacs|call-func dotspacemacs/init "Calling dotfile init...")
|
2015-06-26 16:27:40 +00:00
|
|
|
(dotspacemacs|call-func dotspacemacs/user-init "Calling dotfile user init...")
|
2016-03-17 02:43:50 +00:00
|
|
|
(setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config
|
|
|
|
dotspacemacs-editing-style))
|
2015-12-03 04:49:00 +00:00
|
|
|
(configuration-layer/initialize)
|
|
|
|
;; default theme
|
|
|
|
(let ((default-theme (car dotspacemacs-themes)))
|
2016-01-23 13:40:24 +00:00
|
|
|
(spacemacs/load-theme default-theme)
|
2015-12-03 04:49:00 +00:00
|
|
|
;; protect used themes from deletion as orphans
|
|
|
|
(setq configuration-layer--protected-packages
|
|
|
|
(append
|
|
|
|
(delq nil (mapcar 'spacemacs//get-theme-package
|
|
|
|
dotspacemacs-themes))
|
|
|
|
configuration-layer--protected-packages))
|
|
|
|
(setq-default spacemacs--cur-theme default-theme)
|
|
|
|
(setq-default spacemacs--cycle-themes (cdr dotspacemacs-themes)))
|
2014-11-28 05:07:29 +00:00
|
|
|
;; font
|
2015-08-14 04:50:53 +00:00
|
|
|
(spacemacs|do-after-display-system-init
|
2016-04-19 21:34:17 +00:00
|
|
|
;; If you are thinking to remove this call to `message', think twice. You'll
|
|
|
|
;; break the life of several Spacemacser using Emacs in daemon mode. Without
|
|
|
|
;; this, their chosen font will not be set on the *first* instance of
|
|
|
|
;; emacsclient, at least if different than their system font. You don't
|
|
|
|
;; believe me? Go ahead, try it. After you'll have notice that this was true,
|
|
|
|
;; increase the counter bellow so next people will give it more confidence.
|
|
|
|
;; Counter = 1
|
2016-04-22 07:59:38 +00:00
|
|
|
(message "Setting the font...")
|
2016-06-03 19:19:32 +00:00
|
|
|
(unless (spacemacs/set-default-font dotspacemacs-default-font)
|
2016-05-05 13:10:30 +00:00
|
|
|
(spacemacs-buffer/warning
|
2016-06-03 19:19:32 +00:00
|
|
|
"Cannot find any of the specified fonts (%s)! Font settings may not be correct."
|
2016-06-04 19:40:50 +00:00
|
|
|
(if (listp (car dotspacemacs-default-font))
|
|
|
|
(mapconcat 'car dotspacemacs-default-font ", ")
|
|
|
|
(car dotspacemacs-default-font)))))
|
2015-12-13 20:32:29 +00:00
|
|
|
;; spacemacs init
|
2016-01-07 04:01:27 +00:00
|
|
|
(setq inhibit-startup-screen t)
|
2015-12-13 20:32:29 +00:00
|
|
|
(spacemacs-buffer/goto-buffer)
|
2016-01-07 03:14:17 +00:00
|
|
|
(unless (display-graphic-p)
|
|
|
|
;; explicitly recreate the home buffer for the first GUI client
|
|
|
|
;; in order to correctly display the logo
|
|
|
|
(spacemacs|do-after-display-system-init
|
|
|
|
(kill-buffer (get-buffer spacemacs-buffer-name))
|
|
|
|
(spacemacs-buffer/goto-buffer)))
|
2016-01-07 01:11:32 +00:00
|
|
|
(setq initial-buffer-choice nil)
|
|
|
|
(setq inhibit-startup-screen t)
|
2015-11-18 00:35:32 +00:00
|
|
|
(require 'core-keybindings)
|
2015-12-13 20:40:48 +00:00
|
|
|
;; for convenience and user support
|
|
|
|
(unless (fboundp 'tool-bar-mode)
|
2015-12-21 04:00:09 +00:00
|
|
|
(spacemacs-buffer/message (concat "No graphical support detected, "
|
|
|
|
"you won't be able to launch a "
|
|
|
|
"graphical instance of Emacs"
|
2015-12-13 20:40:48 +00:00
|
|
|
"with this build.")))
|
2015-01-08 05:34:23 +00:00
|
|
|
;; check for new version
|
|
|
|
(if dotspacemacs-mode-line-unicode-symbols
|
2015-01-09 05:22:17 +00:00
|
|
|
(setq-default spacemacs-version-check-lighter "[⇪]"))
|
2015-10-16 13:17:03 +00:00
|
|
|
(spacemacs/set-new-version-lighter-mode-line-faces))
|
2014-12-14 18:53:06 +00:00
|
|
|
|
2015-12-13 20:40:48 +00:00
|
|
|
(defun spacemacs//removes-gui-elements ()
|
|
|
|
"Remove the menu bar, tool bar and scroll bars."
|
|
|
|
;; removes the GUI elements
|
2016-03-31 04:34:28 +00:00
|
|
|
(unless (spacemacs/window-system-is-mac)
|
2015-12-13 20:40:48 +00:00
|
|
|
(when (and (fboundp 'menu-bar-mode) (not (eq menu-bar-mode -1)))
|
|
|
|
(menu-bar-mode -1)))
|
|
|
|
(when (and (fboundp 'scroll-bar-mode) (not (eq scroll-bar-mode -1)))
|
|
|
|
(scroll-bar-mode -1))
|
|
|
|
(when (and (fboundp 'tool-bar-mode) (not (eq tool-bar-mode -1)))
|
|
|
|
(tool-bar-mode -1))
|
|
|
|
;; tooltips in echo-aera
|
|
|
|
(when (and (fboundp 'tooltip-mode) (not (eq tooltip-mode -1)))
|
|
|
|
(tooltip-mode -1)))
|
|
|
|
|
2015-03-31 03:16:33 +00:00
|
|
|
(defun spacemacs/maybe-install-dotfile ()
|
|
|
|
"Install the dotfile if it does not exist."
|
|
|
|
(unless (file-exists-p dotspacemacs-filepath)
|
2015-04-12 04:24:03 +00:00
|
|
|
(spacemacs-buffer/set-mode-line "Dotfile wizard installer")
|
2015-03-31 03:16:33 +00:00
|
|
|
(spacemacs//redisplay)
|
|
|
|
(when (dotspacemacs/install 'with-wizard)
|
2016-04-03 06:51:01 +00:00
|
|
|
(configuration-layer/sync))))
|
2015-03-31 03:16:33 +00:00
|
|
|
|
2015-01-01 04:53:38 +00:00
|
|
|
(defun spacemacs/display-and-copy-version ()
|
|
|
|
"Echo the current spacemacs version and copy it."
|
|
|
|
(interactive)
|
|
|
|
(let ((msg (format "Spacemacs v.%s" spacemacs-version)))
|
|
|
|
(message msg) (kill-new msg)))
|
|
|
|
|
2014-09-30 02:43:25 +00:00
|
|
|
(defun display-startup-echo-area-message ()
|
|
|
|
"Change the default welcome message of minibuffer to another one."
|
|
|
|
(message "Spacemacs is ready."))
|
|
|
|
|
2016-01-21 13:18:33 +00:00
|
|
|
(defun spacemacs/defer-until-after-user-config (func)
|
|
|
|
"Call FUNC if dotspacemacs/user-config has been called. Otherwise,
|
|
|
|
defer call using `spacemacs-post-user-config-hook'."
|
|
|
|
(if spacemacs-post-user-config-hook-run
|
|
|
|
(funcall func)
|
|
|
|
(add-hook 'spacemacs-post-user-config-hook func)))
|
|
|
|
|
2015-07-28 14:01:30 +00:00
|
|
|
(defun spacemacs/setup-startup-hook ()
|
2015-03-02 03:12:09 +00:00
|
|
|
"Add post init processing."
|
|
|
|
(add-hook
|
2015-07-28 14:01:30 +00:00
|
|
|
'emacs-startup-hook
|
2015-03-02 03:12:09 +00:00
|
|
|
(lambda ()
|
|
|
|
;; Ultimate configuration decisions are given to the user who can defined
|
|
|
|
;; them in his/her ~/.spacemacs file
|
2016-01-18 03:06:04 +00:00
|
|
|
(dotspacemacs|call-func dotspacemacs/user-config
|
|
|
|
"Calling dotfile user config...")
|
2016-01-21 13:18:33 +00:00
|
|
|
(run-hooks 'spacemacs-post-user-config-hook)
|
|
|
|
(setq spacemacs-post-user-config-hook-run t)
|
2016-01-05 15:17:23 +00:00
|
|
|
(when (fboundp dotspacemacs-scratch-mode)
|
|
|
|
(with-current-buffer "*scratch*"
|
|
|
|
(funcall dotspacemacs-scratch-mode)))
|
2016-04-03 16:02:28 +00:00
|
|
|
(configuration-layer/display-summary emacs-start-time)
|
2016-03-13 01:37:15 +00:00
|
|
|
(spacemacs/check-for-new-version spacemacs-version-check-interval)
|
|
|
|
(setq spacemacs-initialized t))))
|
2015-03-02 03:12:09 +00:00
|
|
|
|
2016-01-24 23:17:31 +00:00
|
|
|
(defun spacemacs//describe-system-info-string ()
|
|
|
|
"Gathers info about your Spacemacs setup and returns it as a string."
|
|
|
|
(format
|
2016-05-26 19:41:07 +00:00
|
|
|
(concat "#### System Info :computer:\n"
|
2016-01-24 23:17:31 +00:00
|
|
|
"- OS: %s\n"
|
|
|
|
"- Emacs: %s\n"
|
|
|
|
"- Spacemacs: %s\n"
|
|
|
|
"- Spacemacs branch: %s (rev. %s)\n"
|
2016-02-22 22:12:31 +00:00
|
|
|
"- Graphic display: %s\n"
|
2016-01-24 23:17:31 +00:00
|
|
|
"- Distribution: %s\n"
|
|
|
|
"- Editing style: %s\n"
|
|
|
|
"- Completion: %s\n"
|
|
|
|
"- Layers:\n```elisp\n%s```\n")
|
|
|
|
system-type
|
|
|
|
emacs-version
|
|
|
|
spacemacs-version
|
|
|
|
(spacemacs/git-get-current-branch)
|
|
|
|
(spacemacs/git-get-current-branch-rev)
|
2016-02-22 22:12:31 +00:00
|
|
|
(display-graphic-p)
|
2016-01-24 23:17:31 +00:00
|
|
|
dotspacemacs-distribution
|
|
|
|
dotspacemacs-editing-style
|
2016-05-16 02:24:27 +00:00
|
|
|
(cond ((configuration-layer/layer-usedp 'helm)
|
2016-01-24 23:17:31 +00:00
|
|
|
'helm)
|
2016-05-16 02:24:27 +00:00
|
|
|
((configuration-layer/layer-usedp 'ivy)
|
2016-01-24 23:17:31 +00:00
|
|
|
'ivy)
|
|
|
|
(t 'helm))
|
|
|
|
(pp-to-string dotspacemacs-configuration-layers)))
|
|
|
|
|
2015-08-01 04:49:13 +00:00
|
|
|
(defun spacemacs/describe-system-info ()
|
2015-06-25 04:59:13 +00:00
|
|
|
"Gathers info about your Spacemacs setup and copies to clipboard."
|
|
|
|
(interactive)
|
2016-01-24 23:17:31 +00:00
|
|
|
(let ((sysinfo (spacemacs//describe-system-info-string)))
|
2015-08-01 04:49:13 +00:00
|
|
|
(kill-new sysinfo)
|
2015-08-01 19:34:07 +00:00
|
|
|
(message sysinfo)
|
|
|
|
(message (concat "Information has been copied to clipboard.\n"
|
|
|
|
"You can paste it in the gitter chat.\n"
|
|
|
|
"Check the *Messages* buffer if you need to review it"))))
|
2015-06-25 04:59:13 +00:00
|
|
|
|
2016-01-24 23:17:31 +00:00
|
|
|
(defun spacemacs//describe-last-keys-string ()
|
|
|
|
"Gathers info about your Emacs last keys and returns it as a string."
|
2016-04-27 18:57:37 +00:00
|
|
|
(loop
|
|
|
|
for key
|
|
|
|
across (recent-keys)
|
|
|
|
collect (if (or (integerp key) (symbolp key) (listp key))
|
|
|
|
(single-key-description key)
|
|
|
|
(prin1-to-string key))
|
|
|
|
into keys
|
|
|
|
finally (return
|
|
|
|
(with-temp-buffer
|
|
|
|
(set-fill-column 60)
|
|
|
|
(insert (mapconcat 'identity keys " "))
|
|
|
|
(fill-region (point-min) (point-max))
|
2016-05-26 19:41:07 +00:00
|
|
|
(format "#### Emacs last keys :musical_keyboard: \n```text\n%s\n```\n" (buffer-string))))))
|
2016-01-24 23:17:31 +00:00
|
|
|
|
|
|
|
(defun spacemacs/describe-last-keys ()
|
|
|
|
"Gathers info about your Emacs last keys and copies to clipboard."
|
|
|
|
(interactive)
|
|
|
|
(let ((lossage (spacemacs//describe-last-keys-string)))
|
2016-01-11 20:47:04 +00:00
|
|
|
(kill-new lossage)
|
|
|
|
(message lossage)
|
|
|
|
(message (concat "Information has been copied to clipboard.\n"
|
|
|
|
(propertize
|
|
|
|
"PLEASE REVIEW THE DATA BEFORE GOING FURTHER AS IT CAN CONTAIN SENSITIVE DATA (PASSWORD, ...)\n"
|
|
|
|
'face 'font-lock-warning-face)
|
|
|
|
"You can paste it in the gitter chat.\n"
|
|
|
|
"Check the *Messages* buffer if you need to review it"))))
|
2016-01-24 23:17:31 +00:00
|
|
|
|
|
|
|
(defun spacemacs/report-issue (arg)
|
2016-04-27 18:57:37 +00:00
|
|
|
"Open a spacemacs/report-issue-mode buffer prepopulated with
|
|
|
|
issue report template and system information.
|
2016-04-14 12:04:14 +00:00
|
|
|
|
2016-04-27 18:57:37 +00:00
|
|
|
With prefix arg,include the last keys pressed."
|
2016-01-24 23:17:31 +00:00
|
|
|
(interactive "P")
|
2016-04-27 18:57:37 +00:00
|
|
|
(let ((buf
|
|
|
|
(generate-new-buffer "REPORT_SPACEMACS_ISSUE"))
|
|
|
|
(system-info
|
|
|
|
(spacemacs//describe-system-info-string))
|
|
|
|
(backtrace
|
|
|
|
(if (get-buffer "*Backtrace*")
|
|
|
|
(with-current-buffer "*Backtrace*"
|
|
|
|
(buffer-substring-no-properties
|
|
|
|
(point-min)
|
|
|
|
(min (point-max) 1000)))
|
2016-04-29 23:55:46 +00:00
|
|
|
"<<BACKTRACE IF RELEVANT>>"))
|
2016-04-27 18:57:37 +00:00
|
|
|
(last-keys
|
|
|
|
(if (and arg (y-or-n-p (concat "Do you really want to "
|
|
|
|
"include your last pressed keys? It "
|
|
|
|
"may include some sensitive data.")))
|
|
|
|
(concat (spacemacs//describe-last-keys-string) "\n")
|
|
|
|
"")))
|
|
|
|
(switch-to-buffer buf)
|
|
|
|
(insert-file-contents-literally
|
|
|
|
(concat configuration-layer-template-directory "REPORTING.template"))
|
|
|
|
(loop
|
|
|
|
for (placeholder replacement)
|
|
|
|
in '(("%SYSTEM_INFO%" system-info)
|
|
|
|
("%BACKTRACE%" backtrace)
|
|
|
|
("(%LAST_KEYS%)\n" last-keys))
|
|
|
|
do (save-excursion
|
|
|
|
(goto-char (point-min))
|
|
|
|
(search-forward placeholder)
|
|
|
|
(replace-match (symbol-value replacement) [keep-case] [literal])))
|
|
|
|
(spacemacs/report-issue-mode)))
|
|
|
|
|
|
|
|
(define-derived-mode spacemacs/report-issue-mode markdown-mode "Report-Issue"
|
|
|
|
"Major mode for reporting issues with Spacemacs.
|
|
|
|
|
|
|
|
When done editing, you can type \\[spacemacs//report-issue-done] to create the
|
|
|
|
issue on Github. You must be logged in already for this to work. After you see
|
|
|
|
that the issue has been created successfully, you can close this buffer.
|
|
|
|
|
|
|
|
Markdown syntax is supported in this buffer.
|
|
|
|
|
|
|
|
\\{spacemacs/report-issue-mode-map}
|
2016-04-29 23:55:46 +00:00
|
|
|
"
|
|
|
|
(font-lock-add-keywords 'spacemacs/report-issue-mode
|
|
|
|
'(("\\(<<.*?>>\\)" . 'font-lock-comment-face))))
|
2016-04-27 18:57:37 +00:00
|
|
|
|
2016-04-29 23:55:46 +00:00
|
|
|
(define-key spacemacs/report-issue-mode-map
|
|
|
|
(kbd "C-c C-c") 'spacemacs//report-issue-done)
|
|
|
|
(define-key spacemacs/report-issue-mode-map
|
|
|
|
(kbd "C-c C-k") 'kill-buffer)
|
2016-04-27 18:57:37 +00:00
|
|
|
|
|
|
|
(with-eval-after-load 'bind-map
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'spacemacs/report-issue-mode
|
|
|
|
"," 'spacemacs//report-issue-done
|
|
|
|
"c" 'spacemacs//report-issue-done
|
|
|
|
"a" 'kill-buffer
|
|
|
|
"k" 'kill-buffer))
|
|
|
|
|
|
|
|
(defun spacemacs//report-issue-done ()
|
|
|
|
(interactive)
|
|
|
|
(let ((url "http://github.com/syl20bnr/spacemacs/issues/new?body="))
|
|
|
|
(setq url (url-encode-url (concat url (buffer-string))))
|
2016-01-24 23:17:31 +00:00
|
|
|
;; HACK: Needed because the first `#' is not encoded
|
|
|
|
(setq url (replace-regexp-in-string "#" "%23" url))
|
|
|
|
(browse-url url)))
|
|
|
|
|
2015-03-02 03:12:09 +00:00
|
|
|
(provide 'core-spacemacs)
|