Compare commits
2 Commits
1ae5748b81
...
9b5de3bd4e
Author | SHA1 | Date | |
---|---|---|---|
|
9b5de3bd4e | ||
|
01e604b37a |
@ -12,7 +12,11 @@
|
|||||||
enable-recursive-minibuffers t
|
enable-recursive-minibuffers t
|
||||||
read-process-output-max (* 1024 1024)
|
read-process-output-max (* 1024 1024)
|
||||||
vc-follow-symlinks t
|
vc-follow-symlinks t
|
||||||
display-line-numbers-type 'visual)
|
display-line-numbers-type 'visual
|
||||||
|
display-buffer-alist '((".*"
|
||||||
|
(display-buffer-reuse-window display-buffer-same-window)
|
||||||
|
(reusable-frames . t)))
|
||||||
|
even-window-sizes nil)
|
||||||
(setq-default indent-tabs-mode nil)
|
(setq-default indent-tabs-mode nil)
|
||||||
|
|
||||||
;; Always take up the full screen when Emacs opens
|
;; Always take up the full screen when Emacs opens
|
||||||
|
@ -8,4 +8,25 @@
|
|||||||
"gg" #'magit-file-dispatch
|
"gg" #'magit-file-dispatch
|
||||||
"gd" #'magit-dispatch))
|
"gd" #'magit-dispatch))
|
||||||
|
|
||||||
|
;; git-link makes it easy to copy the GitHub URL of the current file/line
|
||||||
|
(use-package git-link
|
||||||
|
:commands (git-link git-link-commit)
|
||||||
|
:init
|
||||||
|
(defun git-link-browse ()
|
||||||
|
(interactive)
|
||||||
|
(let ((git-link-open-in-browser t))
|
||||||
|
(call-interactively 'git-link)))
|
||||||
|
(defun git-link-browse-commit ()
|
||||||
|
(interactive)
|
||||||
|
(let ((git-link-open-in-browser t))
|
||||||
|
(call-interactively 'git-link-commit)))
|
||||||
|
:config
|
||||||
|
(add-to-list 'git-link-remote-alist '("git.jeremydormitzer.com" git-link-bitbucket))
|
||||||
|
(add-to-list 'git-link-commit-remote-alist '("git.jeremydormitzer.com" git-link-commit-bitbucket))
|
||||||
|
:general
|
||||||
|
(leader-map "gy" #'git-link
|
||||||
|
"gl" #'git-link-browse
|
||||||
|
"gc" #'git-link-commit
|
||||||
|
"gb" #'git-link-browse-commit))
|
||||||
|
|
||||||
(provide 'init-git)
|
(provide 'init-git)
|
||||||
|
Loading…
Reference in New Issue
Block a user