Commit 56449893 authored by Guilherme Semente's avatar Guilherme Semente 🌱

General improvements

parent bf3cb000
......@@ -270,8 +270,7 @@ You may find other key bindings inside use-package statements."
(setq uniquify-ignore-buffers-re "^\\*"))
(use-package diminish
:defer
:ensure t)
:defer)
(use-package apropos
:defer
......@@ -286,6 +285,10 @@ You may find other key bindings inside use-package statements."
:config
(winner-mode 1))
(use-package man
:config
(setq man-width 88))
;; keep .emacs.d clean
(use-package no-littering
:ensure t
......@@ -362,7 +365,6 @@ You may find other key bindings inside use-package statements."
bookmark-sort-flag nil))
(use-package midnight
:defer
:config
;; run clean-buffer-list every 2 hours
(setq midnight-period (* 2 60 60)
......@@ -440,11 +442,18 @@ You may find other key bindings inside use-package statements."
"Unix shells"
(use-package shell
:bind ("C-z" . shell)
:bind (:map shell-mode-map ("C-z" . other-window))
:bind ("C-z" . semente-shell)
:bind (:map shell-mode-map ("C-z" . semente-jump-to-register-S))
:bind (:map shell-mode-map ("C-l" . semente-comint-clear-buffer))
:bind (:map shell-mode-map ("TAB" . company-manual-begin))
:preface
(defun semente-shell ()
(interactive)
(window-configuration-to-register 'S)
(shell))
(defun semente-jump-to-register-S ()
(interactive)
(jump-to-register 'S t))
(defun semente-comint-clear-buffer ()
(interactive)
(recenter-top-bottom 0))
......@@ -673,7 +682,8 @@ You may find other key bindings inside use-package statements."
;; (add-hook 'prog-mode-hook 'display-line-numbers-mode)
;; vc
(setq vc-follow-symlinks t)
(setq vc-follow-symlinks t
vc-git-annotate-switches '("-w"))
(add-hook 'vc-log-mode-hook
'(lambda ()
(flyspell-mode)
......@@ -707,7 +717,8 @@ You may find other key bindings inside use-package statements."
:defer
:diminish anaconda-mode
:init
(add-hook 'python-mode-hook 'anaconda-mode))
(add-hook 'python-mode-hook 'anaconda-mode)
(add-hook 'python-mode-hook 'anaconda-eldoc-mode))
(use-package editorconfig
:ensure t
......@@ -774,9 +785,8 @@ You may find other key bindings inside use-package statements."
:init
(global-flycheck-mode t)
:config
(setq flycheck-display-errors-delay 1.0)
;; (setq flycheck-highlighting-mode 'columns)
)
(setq flycheck-display-errors-delay 1.0))
;; (setq flycheck-highlighting-mode 'columns)
(use-package git-link
:ensure t
......@@ -797,7 +807,10 @@ You may find other key bindings inside use-package statements."
:defer
:init
(add-hook 'emacs-lisp-mode-hook 'checkdoc-minor-mode)
(add-hook 'emacs-lisp-mode-hook 'eldoc-mode))
(add-hook 'emacs-lisp-mode-hook 'eldoc-mode)
:config
(setq show-paren-when-point-inside-paren t
show-paren-when-point-in-periphery t))
(use-package magit
:ensure t
......@@ -885,21 +898,15 @@ You may find other key bindings inside use-package statements."
(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'racer-mode-hook #'eldoc-mode))
(use-package yapfify
:ensure t)
;; :config
;; (add-hook 'python-mode-hook 'yapf-mode))
(use-package rainbow-mode
:disabled t ; XXX
:ensure t
:defer
:init
;; (add-hook 'prog-mode-hook 'rainbow-mode)
(add-hook 'css-mode-hook 'rainbow-mode)
(add-hook 'js-mode-hook 'rainbow-mode)
(add-hook 'html-mode-hook 'rainbow-mode)
(add-hook 'nxml-mode-hook 'rainbow-mode)
(add-hook 'prog-mode-hook 'rainbow-mode)
;;(add-hook 'css-mode-hook 'rainbow-mode)
;;(add-hook 'js-mode-hook 'rainbow-mode)
;;(add-hook 'html-mode-hook 'rainbow-mode)
;;(add-hook 'nxml-mode-hook 'rainbow-mode)
:config
(setq rainbow-r-colors-major-mode-list '(ess-mode emacs-lisp-mode)))
......@@ -961,42 +968,24 @@ You may find other key bindings inside use-package statements."
(setq calendar-date-style 'european
calendar-mark-diary-entries-flag t
calendar-mark-holidays-flag t
calendar-christian-all-holidays-flag t)
(setq semente-holiday-brazilian-holidays
`((holiday-fixed 1 1 "Ano Novo")
(holiday-fixed 4 21 "Tiradentes")
(holiday-fixed 5 1 "Dia do Trabalhador")
(holiday-fixed 9 7 "Independência do Brasil")
(holiday-fixed 10 12 "Nossa Senhora Aparecida")
(holiday-fixed 11 2 "Finados")
(holiday-fixed 11 15 "Proclamação da República")
(holiday-fixed 12 25 "Natal")
(holiday-easter-etc 0 "Páscoa")
(holiday-easter-etc -47 "Carnaval")
(holiday-easter-etc -2 "Sexta-Feira Santa/Paixão de Cristo")
(holiday-easter-etc 49 "Pentecostes")
(holiday-easter-etc 56 "Domingo da Santíssima Trindade")
(holiday-easter-etc 60 "Corpus Christi")
(holiday-float 5 0 2 "Dia das Mães")
(holiday-float 8 0 2 "Dia dos Pais")))
(setq semente-holiday-belohorizonte-holidays
`((holiday-fixed 8 15 "Assunção de Nossa Senhora")
(holiday-fixed 12 8 "Imaculada Conceição")))
(setq calendar-holidays
(append semente-holiday-brazilian-holidays
semente-holiday-belohorizonte-holidays)))
calendar-christian-all-holidays-flag t))
(use-package brazilian-holidays
:ensure t
:config
(setq brazilian-holidays-bh-holidays t))
(use-package org
:ensure org-plus-contrib
:bind (("C-c a" . org-agenda)
("C-c c" . org-capture)
("C-c l" . org-store-link)
("C-c t" . org-clock-goto))
("C-c t" . org-clock-goto)
("C-c s" . org-occur-in-agenda-files))
:preface
(defadvice org-agenda-quit (after save-on-quit activate)
"Advise agenda-quit to save all org buffers on quit"
(save-some-buffers t (lambda () (derived-mode-p 'org-mode))))
"Advise agenda-quit to save all org buffers on quit")
(save-some-buffers t (lambda () (derived-mode-p 'org-mode)))
;; save org buffers periodically as long as the agenda buffer is open
(add-hook 'org-agenda-mode-hook
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment