Skip to content

Instantly share code, notes, and snippets.

@kevinadi
Created September 17, 2025 00:54
Show Gist options
  • Select an option

  • Save kevinadi/4ade125362be4ccd7551c35164277935 to your computer and use it in GitHub Desktop.

Select an option

Save kevinadi/4ade125362be4ccd7551c35164277935 to your computer and use it in GitHub Desktop.
Basic init.el
;;; -*- lexical-binding: t -*-
(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-enabled-themes '(leuven-dark))
'(fido-mode t)
'(fido-vertical-mode t)
'(global-display-line-numbers-mode t)
'(make-backup-files nil)
'(mouse-wheel-mode t)
'(xterm-mouse-mode t))
;; Disable display-line-numbers-mode in Eshell buffers
(add-hook 'eshell-mode-hook
(lambda () (display-line-numbers-mode -1)))
(custom-set-faces
;; custom-set-faces 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.
)
(defun move-line-up ()
"Move up the current line."
(interactive)
(transpose-lines 1)
(forward-line -2)
(indent-according-to-mode))
(defun move-line-down ()
"Move down the current line."
(interactive)
(forward-line 1)
(transpose-lines 1)
(forward-line -1)
(indent-according-to-mode))
(global-set-key [(meta up)] 'move-line-up)
(global-set-key [(meta down)] 'move-line-down)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment