|
|
@ -52,7 +52,64 @@ Return a list of installed packages or nil for every skipped package." |
|
|
|
(or (file-exists-p package-user-dir) |
|
|
|
(or (file-exists-p package-user-dir) |
|
|
|
(package-refresh-contents)) |
|
|
|
(package-refresh-contents)) |
|
|
|
|
|
|
|
|
|
|
|
(ensure-package-installed 'use-package 'ivy 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-mode 'rainbow-delimiters 'neotree 'all-the-icons 'elpy 'rustic 'simpleclip 'messages-are-flowing 'hl-todo 'format-all 'auctex 'counsel 'swiper 'projectile 'org-roam 'smex) |
|
|
|
(ensure-package-installed 'use-package 'ivy 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-mode 'rainbow-delimiters 'neotree 'all-the-icons 'elpy 'rustic 'simpleclip 'messages-are-flowing 'hl-todo 'format-all 'auctex 'counsel 'swiper 'projectile 'org-roam 'smex 'smartparens 'origami) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(require 'origami) |
|
|
|
|
|
|
|
(bind-keys |
|
|
|
|
|
|
|
:map origami-mode-map |
|
|
|
|
|
|
|
("C-c C-<tab>" . origami-toggle-node)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(add-hook 'prog-mode-hook #'origami-mode) |
|
|
|
|
|
|
|
(require 'smartparens-config) |
|
|
|
|
|
|
|
(add-hook 'prog-mode-hook #'smartparens-mode) |
|
|
|
|
|
|
|
(bind-keys |
|
|
|
|
|
|
|
:map smartparens-mode-map |
|
|
|
|
|
|
|
("C-M-a" . sp-beginning-of-sexp) |
|
|
|
|
|
|
|
("C-M-e" . sp-end-of-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-<down>" . sp-down-sexp) |
|
|
|
|
|
|
|
("C-<up>" . sp-up-sexp) |
|
|
|
|
|
|
|
("M-<down>" . sp-backward-down-sexp) |
|
|
|
|
|
|
|
("M-<up>" . sp-backward-up-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-M-f" . sp-forward-sexp) |
|
|
|
|
|
|
|
("C-M-b" . sp-backward-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-M-n" . sp-next-sexp) |
|
|
|
|
|
|
|
("C-M-p" . sp-previous-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-S-f" . sp-forward-symbol) |
|
|
|
|
|
|
|
("C-S-b" . sp-backward-symbol) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-<right>" . sp-forward-slurp-sexp) |
|
|
|
|
|
|
|
("M-<right>" . sp-forward-barf-sexp) |
|
|
|
|
|
|
|
("C-<left>" . sp-backward-slurp-sexp) |
|
|
|
|
|
|
|
("M-<left>" . sp-backward-barf-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-M-t" . sp-transpose-sexp) |
|
|
|
|
|
|
|
("C-M-k" . sp-kill-sexp) |
|
|
|
|
|
|
|
("C-k" . sp-kill-hybrid-sexp) |
|
|
|
|
|
|
|
("M-k" . sp-backward-kill-sexp) |
|
|
|
|
|
|
|
("C-M-w" . sp-copy-sexp) |
|
|
|
|
|
|
|
("C-M-d" . delete-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("M-<backspace>" . backward-kill-word) |
|
|
|
|
|
|
|
("C-<backspace>" . sp-backward-kill-word) |
|
|
|
|
|
|
|
([remap sp-backward-kill-word] . backward-kill-word) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("M-[" . sp-backward-unwrap-sexp) |
|
|
|
|
|
|
|
("M-]" . sp-unwrap-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-x C-t" . sp-transpose-hybrid-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("C-c (" . wrap-with-parens) |
|
|
|
|
|
|
|
("C-c [" . wrap-with-brackets) |
|
|
|
|
|
|
|
("C-c {" . wrap-with-braces) |
|
|
|
|
|
|
|
("C-c '" . wrap-with-single-quotes) |
|
|
|
|
|
|
|
("C-c \"" . wrap-with-double-quotes) |
|
|
|
|
|
|
|
("C-c _" . wrap-with-underscores) |
|
|
|
|
|
|
|
("C-c `" . wrap-with-back-quotes)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(use-package company) |
|
|
|
(use-package company) |
|
|
|
(add-hook 'after-init-hook 'global-company-mode) |
|
|
|
(add-hook 'after-init-hook 'global-company-mode) |
|
|
@ -162,11 +219,18 @@ Return a list of installed packages or nil for every skipped package." |
|
|
|
(setq org-log-done t) |
|
|
|
(setq org-log-done t) |
|
|
|
(setq org-startup-with-inline-images t) |
|
|
|
(setq org-startup-with-inline-images t) |
|
|
|
(setq org-startup-with-latex-preview t) |
|
|
|
(setq org-startup-with-latex-preview t) |
|
|
|
|
|
|
|
(setq-default org-display-custom-times t) |
|
|
|
|
|
|
|
(setq org-time-stamp-custom-formats '("<%a %b %e %Y>" . "<%a %b %e %Y %H:%M>")) |
|
|
|
|
|
|
|
|
|
|
|
; agenda settings |
|
|
|
; agenda settings |
|
|
|
(setq org-agenda-include-diary t) |
|
|
|
(setq org-agenda-include-diary t) |
|
|
|
(setq org-agenda-skip-scheduled-if-done t) |
|
|
|
(setq org-agenda-skip-scheduled-if-done t) |
|
|
|
(setq org-agenda-skip-deadline-if-done t) |
|
|
|
(setq org-agenda-skip-deadline-if-done t) |
|
|
|
|
|
|
|
(setq org-agenda-todo-ignore-deadlines t) |
|
|
|
|
|
|
|
(setq org-agenda-todo-ignore-with-date t) |
|
|
|
|
|
|
|
(setq org-agenda-todo-ignore-scheduled t) |
|
|
|
|
|
|
|
(setq org-agenda-start-on-weekday nil) |
|
|
|
|
|
|
|
(setq org-agenda-start-day "+0d") |
|
|
|
|
|
|
|
|
|
|
|
(add-hook 'diary-list-entries-hook 'diary-sort-entries t) |
|
|
|
(add-hook 'diary-list-entries-hook 'diary-sort-entries t) |
|
|
|
(add-hook 'text-mode-hook 'turn-on-visual-line-mode) |
|
|
|
(add-hook 'text-mode-hook 'turn-on-visual-line-mode) |
|
|
|