Prettify code and disable completion for text

This commit is contained in:
2019-12-31 05:56:59 +01:00
parent 19963eeed8
commit 1fdc137b51
3 changed files with 10 additions and 14 deletions

View File

@@ -3,21 +3,12 @@
;; Place your private configuration here
;;
;; Set Font and theme
(setq doom-font (font-spec :family "Iosevka" :size 16)
(setq doom-font (font-spec :family "Iosevka Medium" :size 16)
doom-theme 'doom-nord)
;; Start maximized
(add-to-list 'default-frame-alist '(fullscreen . maximized))
;; Set projects directories
(setq projectile-project-search-path '("~/Sync/Projects"))
;; Close compilation buffer if it went well
(setq compilation-finish-function
(lambda (buf str)
(if (null (string-match ".*exited abnormally.*" str))
(progn
(run-at-time
"1 sec" nil 'delete-windows-on
(get-buffer-create "*compilation*"))
(message "No Compilation Errors!")))))
; Auto cleanup recentf
(setq recentf-auto-cleanup '300)
; Save backup files to ~/.cache and autosave files to ~/.cache/emacs
@@ -33,8 +24,10 @@
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
;; Load org configuration
(after! org (load! "+org"))
;; Disable line numbers in Markdown
(add-hook 'markdown-mode '(lambda () (display-line-numbers-mode -1)))
;; Disable line numbers and completion in Markdown
(add-hook 'markdown-mode-hook '(lambda () (display-line-numbers-mode -1)))
(after! markdown
(set-company-backend! 'markdown-mode nil))
;; Reload file from disk without confirmation
(defun revert-buffer-no-confirm ()
(interactive)