66 lines
1.7 KiB
EmacsLisp
66 lines
1.7 KiB
EmacsLisp
;; my init.el file
|
|
|
|
;; tip of the day: when editing this file, it is possible to use C-x C-e to run
|
|
;; eval-last-sexp after placing the point on top of a configuration value, to
|
|
;; automatically apply it, which can be useful when testing out new things to
|
|
;; see if they work properly or not.
|
|
|
|
;; disable the customs applied by emacs itself
|
|
(setq custom-file (make-temp-file "emacs-c-"))
|
|
|
|
;; package manager
|
|
(require 'package)
|
|
(add-to-list 'package-archives '("melpa". "https://melpa.org/packages") t)
|
|
(package-initialize)
|
|
(when (not (package-installed-p 'use-package)) (package-install 'use-package))
|
|
|
|
;; configure behaviour of the editor
|
|
(setq make-backup-files nil)
|
|
|
|
;; configure the mode line
|
|
(display-time-mode 1)
|
|
(display-battery-mode 1)
|
|
|
|
;; configure user interface
|
|
(defun danirod/configure-font-and-theme ()
|
|
(interactive)
|
|
(set-face-attribute 'default nil :font "Monospace" :height 110)
|
|
(set-face-attribute 'fixed-pitch nil :font "Monospace" :height 110)
|
|
(set-face-attribute 'variable-pitch nil :font "Sans" :height 110 :weight 'regular)
|
|
(load-theme 'wombat t))
|
|
|
|
(if (daemonp)
|
|
(add-hook 'server-after-make-frame-hook
|
|
(lambda (f) (with-selected-frame f (danirod/configure-font-and-theme))))
|
|
(danirod/configure-font-and-theme))
|
|
|
|
(custom-set-variables
|
|
'(menu-bar-mode nil)
|
|
'(tool-bar-mode nil)
|
|
'(inhibit-startup-screen t)
|
|
'(initial-scratch-message nil)
|
|
'(custom-type 'bar))
|
|
(use-package presentation :ensure t
|
|
:init
|
|
(setq presentation-default-text-scale 4))
|
|
|
|
;; ivy
|
|
(use-package ivy
|
|
:ensure t
|
|
:config
|
|
(ivy-mode t))
|
|
|
|
;; lsp
|
|
(use-package lsp-mode
|
|
:ensure t)
|
|
|
|
;; editorconfig and other text behaviour
|
|
(use-package editorconfig
|
|
:ensure t
|
|
:config
|
|
(editorconfig-mode 1))
|
|
|
|
;; magit
|
|
(use-package magit
|
|
:ensure t)
|