Add talosctl completion, add org mode config
This commit is contained in:
parent
aec8ecac63
commit
8e828daaa9
@ -39,6 +39,7 @@ export PATH=$PATH:$HOME/.linkerd2/bin
|
||||
export PATH=$PATH:/usr/local/swift/bin
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
[[ $commands[kubectl] ]] && source <(kubectl completion zsh)
|
||||
[[ $commands[talosctl] ]] && source <(talosctl completion zsh)
|
||||
|
||||
# python setup
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
|
@ -423,23 +423,25 @@ The DWIM behaviour of this command is as follows:
|
||||
(toml . ("https://github.com/tree-sitter/tree-sitter-toml" "v0.5.1"))
|
||||
(tsx . ("https://github.com/tree-sitter/tree-sitter-typescript" "v0.20.3" "tsx/src"))
|
||||
(typescript . ("https://github.com/tree-sitter/tree-sitter-typescript" "v0.20.3" "typescript/src"))
|
||||
(yaml . ("https://github.com/ikatyang/tree-sitter-yaml" "v0.5.0")))))
|
||||
(yaml . ("https://github.com/ikatyang/tree-sitter-yaml" "v0.5.0"))))
|
||||
(add-to-list 'treesit-language-source-alist grammar)
|
||||
;; Only install `grammar' if we don't already have it
|
||||
;; installed. However, if you want to *update* a grammar then
|
||||
;; this obviously prevents that from happening.
|
||||
(unless (treesit-language-available-p (car grammar))
|
||||
(treesit-install-language-grammar (car grammar)))))
|
||||
|
||||
;; Optional, but recommended. Tree-sitter enabled major modes are
|
||||
;; distinct from their ordinary counterparts.
|
||||
;;
|
||||
;; You can remap major modes with `major-mode-remap-alist'. Note
|
||||
;; that this does *not* extend to hooks! Make sure you migrate them
|
||||
;; also
|
||||
(dolist (mapping '((python-mode . python-ts-mode)
|
||||
(dolist (mapping
|
||||
'((python-mode . python-ts-mode)
|
||||
(typescript-mode . typescript-ts-mode)
|
||||
(js2-mode . js-ts-mode)
|
||||
(bash-mode . bash-ts-mode)
|
||||
(conf-toml-mode . toml-ts-mode)
|
||||
(go-mode . go-ts-mode)
|
||||
(css-mode . css-ts-mode)
|
||||
(typescript-mode . tsx-ts-mode)
|
||||
(json-mode . json-ts-mode)
|
||||
(js-mode . js-ts-mode)
|
||||
(css-mode . css-ts-mode)
|
||||
(yaml-mode . yaml-ts-mode)))
|
||||
(add-to-list 'major-mode-remap-alist mapping)))
|
||||
|
||||
(js-json-mode . json-ts-mode)))
|
||||
(add-to-list 'major-mode-remap-alist mapping))
|
||||
:config
|
||||
(gh-setup-install-grammars)
|
||||
;; Do not forget to customize Combobulate to your liking:
|
||||
@ -513,3 +515,40 @@ The DWIM behaviour of this command is as follows:
|
||||
:config
|
||||
(setq kubernetes-poll-frequency 3600 ;
|
||||
kubernetes-redraw-frequency 3600))
|
||||
|
||||
|
||||
;; org-mode
|
||||
(setq org-agenda-files '("~/org"))
|
||||
(setq org-return-follows-link t)
|
||||
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
|
||||
(add-hook 'org-mode-hook 'org-indent-mode)
|
||||
(setq org-hide-emphasis-markers t)
|
||||
(add-hook 'org-mode-hook 'visual-line-mode)
|
||||
(let* ((variable-tuple
|
||||
(cond ((x-list-fonts "ETBembo") '(:font "ETBembo"))
|
||||
((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro"))
|
||||
((x-list-fonts "Lucida Grande") '(:font "Lucida Grande"))
|
||||
((x-list-fonts "Verdana") '(:font "Verdana"))
|
||||
((x-family-fonts "Sans Serif") '(:family "Sans Serif"))
|
||||
(nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro."))))
|
||||
(base-font-color (face-foreground 'default nil 'default))
|
||||
(headline `(:inherit default :weight bold :foreground ,base-font-color)))
|
||||
|
||||
(custom-theme-set-faces
|
||||
'user
|
||||
`(org-level-8 ((t (,@headline ,@variable-tuple))))
|
||||
`(org-level-7 ((t (,@headline ,@variable-tuple))))
|
||||
`(org-level-6 ((t (,@headline ,@variable-tuple))))
|
||||
`(org-level-5 ((t (,@headline ,@variable-tuple))))
|
||||
`(org-level-4 ((t (,@headline ,@variable-tuple :height 1.1))))
|
||||
`(org-level-3 ((t (,@headline ,@variable-tuple :height 1.2))))
|
||||
`(org-level-2 ((t (,@headline ,@variable-tuple :height 1.3))))
|
||||
`(org-level-1 ((t (,@headline ,@variable-tuple :height 1.5))))
|
||||
`(org-document-title ((t (,@headline ,@variable-tuple :height 1.6 :underline nil))))))
|
||||
|
||||
|
||||
(use-package ob-typescript)
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((typescript . t)
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user