Initial emacs configuration
This commit is contained in:
commit
4190318cc3
1
early-init.el
Normal file
1
early-init.el
Normal file
|
@ -0,0 +1 @@
|
||||||
|
(setq package-enable-at-startup nil)
|
55
init.el
Normal file
55
init.el
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
;;;; Appearance
|
||||||
|
|
||||||
|
;; Set theme
|
||||||
|
(load-theme 'tango-dark)
|
||||||
|
|
||||||
|
;; Hide ribbon, menu bar, and scroll bars
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
(toggle-scroll-bar -1)
|
||||||
|
|
||||||
|
;; Show colum number in status bar
|
||||||
|
(column-number-mode +1)
|
||||||
|
|
||||||
|
;; Show line numbers
|
||||||
|
(global-display-line-numbers-mode +1)
|
||||||
|
|
||||||
|
;; Highlight current line
|
||||||
|
;;(global-hl-line-mode 1) -- disabled until less nasty theme
|
||||||
|
|
||||||
|
;; Replace yes/no prompts with y/n prompts
|
||||||
|
(fset #'yes-or-no-p #'y-or-n-p)
|
||||||
|
|
||||||
|
;; Fix jumpy scrolling
|
||||||
|
(setq mouse-wheel-scroll-amount '(3 ((shift) . 1))
|
||||||
|
mouse-wheel-progressive-speed nil
|
||||||
|
mouse-wheel-follow-mouse +1
|
||||||
|
scroll-step 1) ;; C-n C-p scroll step
|
||||||
|
|
||||||
|
;;;; Packages (straight.el)
|
||||||
|
|
||||||
|
(defvar bootstrap-version)
|
||||||
|
(let ((bootstrap-file
|
||||||
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
|
(bootstrap-version 6))
|
||||||
|
(unless (file-exists-p bootstrap-file)
|
||||||
|
(with-current-buffer
|
||||||
|
(url-retrieve-synchronously
|
||||||
|
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
||||||
|
'silent 'inhibit-cookies)
|
||||||
|
(goto-char (point-max))
|
||||||
|
(eval-print-last-sexp)))
|
||||||
|
(load bootstrap-file nil 'nomessage))
|
||||||
|
|
||||||
|
;; Use-Package
|
||||||
|
(straight-use-package 'use-package)
|
||||||
|
(setq straight-use-package-by-default +1)
|
||||||
|
|
||||||
|
;; Avy (jump to char)
|
||||||
|
(use-package avy)
|
||||||
|
(global-set-key (kbd "C-;") #'avy-goto-char)
|
||||||
|
(global-set-key (kbd "C-:") #'avy-goto-word-1)
|
||||||
|
(global-set-key (kbd "M-g g") #'avy-goto-line)
|
||||||
|
|
||||||
|
;; Magit (git frontend)
|
||||||
|
(use-package magit)
|
Loading…
Reference in a new issue