56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
;; Use correct shell
|
|
(setenv "SHELL" "/bin/bash")
|
|
(setq shell-file-name "/bin/bash"
|
|
explicit-shell-file-name "/bin/bash"
|
|
shell-command-switch "-c")
|
|
|
|
;; Start the compile prompt with an empty command.
|
|
(setq-default compile-command "")
|
|
|
|
|
|
;; Disable auto-save files (#file#).
|
|
(setq auto-save-default nil)
|
|
|
|
;; Disable backup files (file~).
|
|
(setq make-backup-files nil)
|
|
|
|
;; Disable lockfiles (.#file)
|
|
(setq create-lockfiles nil)
|
|
|
|
;; Disable startup splash screen
|
|
(setq inhibit-startup-message t)
|
|
;; (setq initial-scratch-message nil)
|
|
|
|
;; Remove noisy UI
|
|
(menu-bar-mode 0)
|
|
(tool-bar-mode 0)
|
|
(scroll-bar-mode 0)
|
|
|
|
;; Line numbers
|
|
(global-display-line-numbers-mode 1)
|
|
(setq display-line-numbers 'relative)
|
|
|
|
(fido-mode 1)
|
|
|
|
;; Initialize the built-in package manager.
|
|
;; Add nongnu just in case
|
|
(require 'package)
|
|
(add-to-list 'package-archives
|
|
'("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
|
|
(package-initialize)
|
|
|
|
;; Download Gruber Darker if it is not installed yet.
|
|
(unless (package-installed-p 'gruber-darker-theme)
|
|
(package-refresh-contents)
|
|
(package-install 'gruber-darker-theme))
|
|
|
|
;; Enable the theme without a confirmation prompt.
|
|
(load-theme 'gruber-darker t)
|
|
|
|
;; Python
|
|
|
|
(defun pycheck ()
|
|
"Run flake8 and mypy in the current directory."
|
|
(interactive)
|
|
(compile "flake8 --color=never . && echo 'Success: flake8' && mypy --strict ."))
|