aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-05-30 18:31:53 +0800
committergxlin <[email protected]>2021-05-30 18:31:53 +0800
commit8d66dbaa1e707a3aa7e2a4eac034269f822a9ed5 (patch)
treef39270071cc6ddf54db02f5f2a96aa6aaee16fd3
parente53364383e337e9c136c5aabfc184f0255cc3859 (diff)
downloaddotfiles-8d66dbaa1e707a3aa7e2a4eac034269f822a9ed5.tar.gz
dotfiles-8d66dbaa1e707a3aa7e2a4eac034269f822a9ed5.tar.bz2
dotfiles-8d66dbaa1e707a3aa7e2a4eac034269f822a9ed5.zip
Add kitty config
-rw-r--r--.emacs.d/init.el8
-rw-r--r--.emacs.d/modes/init-org-mode.el3
-rw-r--r--kitty.conf8
3 files changed, 18 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 68ac66c..8ed2a78 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -51,7 +51,7 @@
;; Company Mode
(use-package company
:init
- (setq company-global-modes '(emacs-lisp-mode))
+ (setq company-global-modes '(emacs-lisp-mode go-mode))
:hook ((after-init . global-company-mode)))
;; Projectile
@@ -94,6 +94,12 @@
:config
(exec-path-from-shell-initialize))
+(use-package go-mode
+ :ensure t
+ :commands (go-mode)
+ :mode (("\\.go\\'" . go-mode))
+ :hook ((go-mode . (lambda () (setq tab-width 4)))))
+
(use-package avy)
(use-package paredit
diff --git a/.emacs.d/modes/init-org-mode.el b/.emacs.d/modes/init-org-mode.el
index 0644aa4..f402902 100644
--- a/.emacs.d/modes/init-org-mode.el
+++ b/.emacs.d/modes/init-org-mode.el
@@ -1,6 +1,9 @@
(use-package org
:after evil
:commands org-agenda
+ :hook ((org-mode . (lambda () (setq tab-width 4))))
+ :init
+ (setq org-src-tab-acts-natively t)
:config
(require 'org-tempo)
(setq org-directory "~/notes/")
diff --git a/kitty.conf b/kitty.conf
new file mode 100644
index 0000000..04ab5ee
--- /dev/null
+++ b/kitty.conf
@@ -0,0 +1,8 @@
+# vim:fileencoding=utf-8:ft=conf
+
+# Fonts
+font_size 15
+font_family Monaco
+
+# macOS
+macos_quit_when_last_window_closed yes