Emacs stuff

lightmode
E. Almqvist 2 years ago
parent bf9e1c3fbe
commit 490aa46b28
  1. 16
      emacs/.config/emacs/config.el
  2. 40
      emacs/.config/emacs/init.el
  3. 1
      emacs/.config/emacs/projectile-bookmarks.eld

@ -0,0 +1,16 @@
;; User
(setq user-full-name "E. Almqvist"
user-mail-address "elalmqvist@gmail.com")
;; Theme
(load-theme 'doom-tomorrow-night t)
;; Font size
(set-face-attribute 'default nil :height 140)
;; Enable line numbers
(global-display-line-numbers-mode 1)
;; Indentation
;; (setq indent-tabs-mode t
;; tab-width 8)

@ -1,11 +1,21 @@
(setq user-full-name "E. Almqvist"
user-mail-address "elalmqvist@gmail.com")
;; Evil mode (vim binds) ;; Evil mode (vim binds)
(require 'evil) (require 'evil)
(evil-mode t) (evil-mode t)
(setq inhibit-startup-message t ;; Projectile (Project management)
(projectile-mode +1)
;; Recommended keymap prefix on macOS
;; (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
;; Recommended keymap prefix on Windows/Linux
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
;; Treemacs
(with-eval-after-load 'treemacs
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action))
;; Startup stuff
(setq inhibit-startup-message nil
visible-bell nil) ;; Don't the bell thing visible-bell nil) ;; Don't the bell thing
;; Remove ugly bars ;; Remove ugly bars
@ -13,22 +23,9 @@
(tool-bar-mode -1) (tool-bar-mode -1)
(scroll-bar-mode -1) (scroll-bar-mode -1)
;; Enable line numbers
(global-display-line-numbers-mode 1)
;; Indentation
;; (setq indent-tabs-mode t
;; tab-width 8)
;; Disable backup files etc. ;; Disable backup files etc.
(setq make-backup-files nil) (setq make-backup-files nil)
;; Theme
;; (load-theme 'deeper-blue t)
(load-theme 'modus-vivendi t)
(set-face-attribute 'default nil :height 140)
;; Melpa ;; Melpa
(require 'package) (require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
@ -38,10 +35,17 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(lsp-mode evil))) '(custom-safe-themes
'("7e377879cbd60c66b88e51fad480b3ab18d60847f31c435f15f5df18bdb18184" default))
'(package-selected-packages
'(treemacs-evil treemacs projectile doom-themes lsp-mode evil)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
) )
;; Loading config stuff
(load "$HOME/.config/emacs/config.el")

Loading…
Cancel
Save