Skip to content

Instantly share code, notes, and snippets.

@mattiasb
Last active November 8, 2024 12:47
Show Gist options
  • Save mattiasb/17bf9836870ac1e97d3dc1c7734bd9cb to your computer and use it in GitHub Desktop.
Save mattiasb/17bf9836870ac1e97d3dc1c7734bd9cb to your computer and use it in GitHub Desktop.
Emacs config binding forge-create-issue
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-file (file-name-concat user-emacs-directory "custom.el"))
'(delete-selection-mode t)
'(fill-column 80)
'(inhibit-startup-buffer-menu t)
'(inhibit-startup-screen t)
'(initial-scratch-message "")
'(package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("nongnu" . "https://elpa.nongnu.org/nongnu/")
("melpa-stable" . "http://stable.melpa.org/packages/")))
'(package-gnupghome-dir (file-name-concat user-emacs-directory "elpa/gnupg/"))
'(package-native-compile t)
'(package-quickstart t)
'(package-quickstart-file
(file-name-concat user-emacs-directory "elpa/package-quickstart.el"))
'(package-selected-packages '(forge magit)))
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
;; Avoid mixing in with any already existing config
(startup-redirect-eln-cache (file-name-concat user-emacs-directory "eln-cache"))
(setq package-user-dir (file-name-concat user-emacs-directory "elpa"))
(load (file-name-concat user-emacs-directory "custom.el"))
(load-theme 'wombat)
(fido-vertical-mode)
(windmove-default-keybindings)
(display-fill-column-indicator-mode)
(package-refresh-contents)
(unless (package-installed-p 'magit)
(package-install 'magit))
(unless (package-installed-p 'forge)
(package-install 'forge))
(with-eval-after-load 'forge-topic
(define-key forge-topic-mode-map (kbd "C-c C-n") #'forge-create-issue)
(define-key forge-issue-mode-map (kbd "C-c C-n") #'forge-create-issue))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment