From 9663f8d04e1f8e8c40a348824a63114028f1598c Mon Sep 17 00:00:00 2001 From: Aaron Gonzales Date: Sat, 17 Aug 2024 08:39:46 -0700 Subject: [PATCH] feat: test using `:vc` --- emacs/custom.el | 51 +++++++++++++++++++++++++++++++++---------------- emacs/init.el | 3 ++- 2 files changed, 37 insertions(+), 17 deletions(-) diff --git a/emacs/custom.el b/emacs/custom.el index 6ff9a58..16205bc 100755 --- a/emacs/custom.el +++ b/emacs/custom.el @@ -5,31 +5,50 @@ ;; If there is more than one, they won't work right. '(bmkp-last-as-first-bookmark-file "~/.config/emacs/var/bmkp/current-bookmark.el") '(company-dabbrev-ignore-case nil) + '(doom-modeline-check-simple-format t nil nil "Customized with use-package doom-modeline") '(package-selected-packages - '(keychain-environment company company-eclim go-mode lsp-ui frame-local pyenv-mode-auto pyenv-mode rg delight blacken powerline powermo company-posframe company-postframe company-box simpleclip all-the-icons-ivy-rich tide flycheck exec-path-from-shell company-web skewer-mode simple-httpd js2 prettier-js rjsx json-snatcher json-reformat js-comint web-mode emmet-mode add-node-modules-path yaml-mode lsp-mode dired-recent diredfl ivy-rich all-the-icons beginend default-text-scale company-prescient ivy-prescient prescient benchmark-init flx company-quickhelp-terminal crux company-quickhelp counsel ace-jump ace-jump-mode diminish auto-package-update electric-pair-mode moe-theme-switcher electric-pair ssh-agency jedi moe-theme bind-map rjsx-mode ag company-tern impatient-mode company-jedi smex idle-highlight-in-visible-buffers-mode idle-highlight-mode magit async git-commit list-packages-ext use-package image+ gnu-elpa-keyring-update magithub pylint python-black multiple-cursors material-theme elpy better-defaults python)) - '(web-mode-attr-indent-offset 2) - '(web-mode-attr-value-indent-offset 2) - '(web-mode-code-indent-offset 2) - '(web-mode-css-indent-offset 2) - '(web-mode-enable-auto-closing t) - '(web-mode-enable-auto-expanding t) - '(web-mode-enable-auto-opening t) - '(web-mode-enable-auto-pairing t) - '(web-mode-enable-css-colorization t) - '(web-mode-enable-current-column-highlight t) - '(web-mode-enable-current-element-highlight t) - '(web-mode-markup-indent-offset 2)) + '(keychain-environment company company-eclim go-mode lsp-ui + frame-local pyenv-mode-auto pyenv-mode rg + delight blacken powerline powermo + company-posframe company-postframe + company-box simpleclip + all-the-icons-ivy-rich tide flycheck + exec-path-from-shell company-web skewer-mode + simple-httpd js2 prettier-js rjsx + json-snatcher json-reformat js-comint + web-mode emmet-mode add-node-modules-path + yaml-mode lsp-mode dired-recent diredfl + ivy-rich all-the-icons beginend + default-text-scale company-prescient + ivy-prescient prescient benchmark-init flx + company-quickhelp-terminal crux + company-quickhelp counsel ace-jump + ace-jump-mode diminish auto-package-update + electric-pair-mode moe-theme-switcher + electric-pair ssh-agency jedi moe-theme + bind-map rjsx-mode ag company-tern + impatient-mode company-jedi smex + idle-highlight-in-visible-buffers-mode + idle-highlight-mode magit async git-commit + list-packages-ext use-package image+ + gnu-elpa-keyring-update magithub pylint + python-black multiple-cursors material-theme + elpy better-defaults python)) + '(package-vc-selected-packages + '((sqlformat :url "https://github.com/purcell/sqlformat" :branch + "master"))) + '(safe-local-variable-values '((elisp-lint-indent-specs (when-let . 1))))) (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. - '(git-gutter:modified ((t (:background unspecified :foreground "dodgerblue" :weight bold)))) - '(git-gutter:added ((t (:background unspecified :foreground "limegreen")))) - '(git-gutter:deleted ((t (:background unspecified)))) '(dired-subtree-depth-1-face ((t unspecified))) '(dired-subtree-depth-2-face ((t unspecified))) '(dired-subtree-depth-3-face ((t unspecified))) + '(git-gutter:added ((t (:background unspecified :foreground "limegreen")))) + '(git-gutter:deleted ((t (:background unspecified)))) + '(git-gutter:modified ((t (:background unspecified :foreground "dodgerblue" :weight bold)))) '(ivy-minibuffer-match-face-2 ((t (:background "steel blue" :foreground "#eeeeee" :weight bold)))) '(swiper-background-match-face-2 ((t (:background "steel blue" :foreground "gainsboro")))) '(swiper-match-face-1 ((t (:background "light cyan" :foreground "dim gray" :weight bold)))) diff --git a/emacs/init.el b/emacs/init.el index 9caaba8..57b2766 100755 --- a/emacs/init.el +++ b/emacs/init.el @@ -3009,7 +3009,8 @@ if one already exists." ;;; SQL Mode (use-package sqlformat - :straight (:type git :host github :repo "purcell/sqlformat" :branch "master") + :vc (:url "https://github.com/purcell/sqlformat" + :branch "master") :hook (sql-mode . sqlformat-on-save-mode) :custom (sqlformat-command 'pgformatter))