Skip to content

Instantly share code, notes, and snippets.

@mattiasb
Last active November 8, 2024 12:47
Show Gist options
  • Select an option

  • Save mattiasb/17bf9836870ac1e97d3dc1c7734bd9cb to your computer and use it in GitHub Desktop.

Select an option

Save mattiasb/17bf9836870ac1e97d3dc1c7734bd9cb to your computer and use it in GitHub Desktop.

Revisions

  1. mattiasb revised this gist Nov 8, 2024. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion custom.el
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,6 @@
    '(delete-selection-mode t)
    '(fill-column 80)
    '(inhibit-startup-buffer-menu t)
    '(inhibit-startup-echo-area-message "mattiasb")
    '(inhibit-startup-screen t)
    '(initial-scratch-message "")
    '(package-archives
  2. mattiasb revised this gist Nov 8, 2024. No changes.
  3. mattiasb created this gist Nov 8, 2024.
    22 changes: 22 additions & 0 deletions custom.el
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    (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-echo-area-message "mattiasb")
    '(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)))
    9 changes: 9 additions & 0 deletions early-init.el
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    (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"))
    15 changes: 15 additions & 0 deletions init.el
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    (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))