Compare commits

...

2 Commits

Author SHA1 Message Date
Jeremy Dormitzer
9b5de3bd4e Configure pop-up buffers 2021-02-20 10:45:02 -05:00
Jeremy Dormitzer
01e604b37a Set up git-link 2021-02-20 10:44:56 -05:00
2 changed files with 26 additions and 1 deletions

View File

@ -12,7 +12,11 @@
enable-recursive-minibuffers t
read-process-output-max (* 1024 1024)
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)
;; Always take up the full screen when Emacs opens

View File

@ -8,4 +8,25 @@
"gg" #'magit-file-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)