-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.el
65 lines (55 loc) · 2.46 KB
/
custom.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
;;; custom.el --- user customization file -*- lexical-binding: t no-byte-compile: t -*-
;;
;;; Commentary:
;;
;;; Code:
;; Calendar
;; Set location , then press `S' can show the time of sunrise and sunset
(setq calendar-location-name "Sao Paulo"
calendar-latitude 23.33
calendar-longitude 46.38)
;; Set custom variables
(setq user-full-name "Luiz Tagliaferro"
user-mail-address "luiz@luiznux.com"
luiznux-enviroment-type 'nil
luiznux-package-archives 'melpa
luiznux-server t)
;;(setq emacs-parsing-system 'tree-sitter) ; Set parsing system `treesit' or `tree-sitter'
;;(setq doom-modeline-font-size value) ; Set `doom-modeline' font size value
;;(setq centaur-tabs-font-size value) ; Set `centaur-tabs' font size value
;;(setq lsp-format-on-save t) ; Auto format buffers on save
;;(setq open-agenda-with-dashboard t) ; Open custom `org-agenda' right of dashboard
;;(setq font-ligatures-support t) ; Set font ligatures support
;;(setq fancy-modeline t) ; Enable fancy modeline(parrot and nyan mode)
;;(setq emacs-xwidget-internal t) ; Enable using `xwidget-webkit'
(defun setup-fonts ()
"Set default fonts."
(cl-loop for font in '("SauceCodePro Nerd Font" "Source Code Pro"
"DejaVu Sans Mono" "Noto Sans")
when (font-installed-p font)
return (set-face-attribute 'default nil
:font font
:height 90
:weight 'medium))
;; Specify font for all unicode characters
(cl-loop for font in '("Symbola" "Symbol")
when (font-installed-p font)
return (set-fontset-font t 'unicode font nil 'prepend)))
(setup-fonts)
(add-hook 'window-setup-hook #'setup-fonts)
(add-hook 'server-after-make-frame-hook #'setup-fonts)
;; Sets ibuffer as default.
(defalias 'list-buffers 'ibuffer)
(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-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.
)
;;; custom.el ends here