Prettify code and disable completion for text

This commit is contained in:
coolneng 2019-12-31 05:56:59 +01:00
parent 19963eeed8
commit 1fdc137b51
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 10 additions and 14 deletions

View File

@ -10,6 +10,9 @@
;; Cycle through header visibility ;; Cycle through header visibility
(after! evil-org (after! evil-org
(remove-hook 'org-tab-first-hook #'+org-cycle-only-current-subtree-h)) (remove-hook 'org-tab-first-hook #'+org-cycle-only-current-subtree-h))
;; Disable completion
(set-company-backend! 'org-mode nil)
;; Turn off line numbers
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1))) (add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
;; Tailor Org super agenda ;; Tailor Org super agenda
(use-package! org-super-agenda (use-package! org-super-agenda

View File

@ -3,21 +3,12 @@
;; Place your private configuration here ;; Place your private configuration here
;; ;;
;; Set Font and theme ;; 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) doom-theme 'doom-nord)
;; Start maximized ;; Start maximized
(add-to-list 'default-frame-alist '(fullscreen . maximized)) (add-to-list 'default-frame-alist '(fullscreen . maximized))
;; Set projects directories ;; Set projects directories
(setq projectile-project-search-path '("~/Sync/Projects")) (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 ; Auto cleanup recentf
(setq recentf-auto-cleanup '300) (setq recentf-auto-cleanup '300)
; Save backup files to ~/.cache and autosave files to ~/.cache/emacs ; 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)) (setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
;; Load org configuration ;; Load org configuration
(after! org (load! "+org")) (after! org (load! "+org"))
;; Disable line numbers in Markdown ;; Disable line numbers and completion in Markdown
(add-hook 'markdown-mode '(lambda () (display-line-numbers-mode -1))) (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 ;; Reload file from disk without confirmation
(defun revert-buffer-no-confirm () (defun revert-buffer-no-confirm ()
(interactive) (interactive)

View File

@ -36,7 +36,7 @@
(popup ; tame sudden yet inevitable temporary windows (popup ; tame sudden yet inevitable temporary windows
+all ; catch all popups that start with an asterix +all ; catch all popups that start with an asterix
+defaults) ; default popup rules +defaults) ; default popup rules
;;pretty-code ; replace bits of code with pretty symbols (pretty-code +iosevka); replace bits of code with pretty symbols
;;tabs ; an tab bar for Emacs ;;tabs ; an tab bar for Emacs
;;treemacs ; a project drawer, like neotree but cooler ;;treemacs ; a project drawer, like neotree but cooler
;;unicode ; extended unicode support for various languages ;;unicode ; extended unicode support for various languages
@ -141,7 +141,7 @@
;;php ; perl's insecure younger brother ;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more ;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional ;;purescript ; javascript, but functional
python ; beautiful is better than ugly (python +pyenv) ; beautiful is better than ugly
;;qt ; the 'cutest' gui framework ever ;;qt ; the 'cutest' gui framework ever
;;racket ; a DSL for DSLs ;;racket ; a DSL for DSLs
;;rest ; Emacs as a REST client ;;rest ; Emacs as a REST client