summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-12-17 01:07:45 +0100
committerGravatar Tom Willemse2015-12-17 01:07:45 +0100
commitbc52f7560902e05535a936743d51654434b7e8d0 (patch)
tree1abc70f33fb29678adbe1df528f44a3c7d2e822d /emacs/.emacs.d/init.el
parentcc4b99f7fce7e74de996e55571aaa5106672d32e (diff)
downloaddotfiles-bc52f7560902e05535a936743d51654434b7e8d0.tar.gz
dotfiles-bc52f7560902e05535a936743d51654434b7e8d0.zip
Move eshell-handle-url to eshell library
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el11
1 files changed, 1 insertions, 10 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index b2ae0ea..7978a21 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -148,15 +148,6 @@ MODE1 is enabled and vice-versa."
"Set the `disabled' property for each item in FUNCTIONS to nil."
(mapc #'(lambda (f) (put f 'disabled nil)) functions))
-(defun oni:eshell-handle-url ()
- (save-excursion
- (goto-char eshell-last-output-start)
- (while (re-search-forward
- "https?://[^ \n]+" eshell-last-output-end :noerror)
- (make-button (match-beginning 0) (match-end 0)
- 'action (lambda (button)
- (browse-url (button-label button)))))))
-
(defun oni:go-mode-func ()
"Function for `go-mode-hook'."
(setq indent-tabs-mode nil))
@@ -774,7 +765,7 @@ If no direction is given, don't split."
(setq emms-player-mpd-music-directory "/mnt/music/mp3"))
(stante-after esh-mode
- (add-to-list 'eshell-output-filter-functions #'oni:eshell-handle-url)
+ (add-to-list 'eshell-output-filter-functions 'oni:eshell-buttonize-url)
(add-to-list 'eshell-output-filter-functions #'eshell-truncate-buffer))
(stante-after eww