Created
April 19, 2022 20:04
-
-
Save splch/c36d973dbb71820c4dfa14425d23e2de to your computer and use it in GitHub Desktop.
emacs configuration generated by https://emacs.amodernist.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;; Personal configuration -*- lexical-binding: t -*- | |
| ;; Save the contents of this file under ~/.emacs.d/init.el | |
| ;; Do not forget to use Emacs' built-in help system: | |
| ;; Use C-h C-h to get an overview of all help commands. All you | |
| ;; need to know about Emacs (what commands exist, what functions do, | |
| ;; what variables specify), the help system can provide. | |
| ;; Add the NonGNU ELPA package archive | |
| (require 'package) | |
| (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/")) | |
| ;; Load a custom theme | |
| (load-theme 'misterioso t) | |
| ;; LSP Support | |
| (unless (package-installed-p 'eglot) | |
| (package-install 'eglot)) | |
| ;; Enable LSP support by default in programming buffers | |
| (add-hook 'prog-mode-hook #'eglot-ensure) | |
| ;; Pop-up auto-completion | |
| (unless (package-installed-p 'company) | |
| (package-install 'company)) | |
| ;; Enable Company by default in programming buffers | |
| (add-hook 'prog-mode-hook #'company-mode) | |
| ;; Git client | |
| (unless (package-installed-p 'magit) | |
| (package-install 'magit)) | |
| ;; Bind the `magit-status' command to a convenient key. | |
| (global-set-key (kbd "C-c g") #'magit-status) | |
| ;; Go Support | |
| (unless (package-installed-p 'go-mode) | |
| (package-install 'go-mode)) | |
| ;; Markdown support | |
| (unless (package-installed-p 'markdown-mode) | |
| (package-install 'markdown-mode)) | |
| ;; Outline-based notes management and organizer | |
| ;; Miscellaneous options | |
| (setq major-mode (lambda () ; guess major mode from file name | |
| (unless buffer-file-name | |
| (let ((buffer-file-name (buffer-name))) | |
| (set-auto-mode))))) | |
| (setq confirm-kill-emacs #'yes-or-no-p) | |
| (setq window-resize-pixelwise t) | |
| (setq frame-resize-pixelwise t) | |
| (save-place-mode t) | |
| (savehist-mode t) | |
| (recentf-mode t) | |
| ;; Store automatic customisation options elsewhere | |
| (setq custom-file (locate-user-emacs-file "custom.el")) | |
| (when (file-exists-p custom-file) | |
| (load custom-file)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment