tweaks
This commit is contained in:
parent
6ae86b5969
commit
f0370c8e51
2 changed files with 13 additions and 15 deletions
|
@ -401,6 +401,15 @@
|
||||||
"s-<return>" #'split-window-below
|
"s-<return>" #'split-window-below
|
||||||
"s-<mouse-1>" #'+fold/toggle)
|
"s-<mouse-1>" #'+fold/toggle)
|
||||||
|
|
||||||
|
;; remove default Lispy mode bindings
|
||||||
|
(map! :map lispy-mode-map
|
||||||
|
"M-<left>" nil
|
||||||
|
"M-<right>" nil)
|
||||||
|
(map! :map lispy-mode-map-lispy
|
||||||
|
"M-<left>" nil
|
||||||
|
"M-<right>" nil)
|
||||||
|
|
||||||
|
|
||||||
(after! which-key
|
(after! which-key
|
||||||
(let ((prefix-re (regexp-opt (list doom-leader-key doom-leader-alt-key))))
|
(let ((prefix-re (regexp-opt (list doom-leader-key doom-leader-alt-key))))
|
||||||
(cl-pushnew `((,(format "\\`\\(?:C-w\\|%s w\\) m\\'" prefix-re))
|
(cl-pushnew `((,(format "\\`\\(?:C-w\\|%s w\\) m\\'" prefix-re))
|
||||||
|
|
19
config.el
19
config.el
|
@ -25,10 +25,6 @@
|
||||||
|
|
||||||
(setq org-directory "~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Primary/org/")
|
(setq org-directory "~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Primary/org/")
|
||||||
|
|
||||||
;; quick function for removing all blank lines in a buffer
|
|
||||||
(defun mnl/remove-all-blank-lines ()
|
|
||||||
(flush-lines "^$"))
|
|
||||||
|
|
||||||
;; Modeline
|
;; Modeline
|
||||||
;; - add current workspace name
|
;; - add current workspace name
|
||||||
;; - add major mode icon
|
;; - add major mode icon
|
||||||
|
@ -36,6 +32,9 @@
|
||||||
(setq doom-modeline-persp-name t
|
(setq doom-modeline-persp-name t
|
||||||
doom-modeline-major-mode-icon t))
|
doom-modeline-major-mode-icon t))
|
||||||
|
|
||||||
|
;; set default frame size on launch
|
||||||
|
(setq default-frame-alist '( (left . 0) (top . 0) (height . 48) (width . 160) ))
|
||||||
|
|
||||||
;; fixing compat issue for corfu in emacs28
|
;; fixing compat issue for corfu in emacs28
|
||||||
;; (defalias 'compat-string-width 'string-width)
|
;; (defalias 'compat-string-width 'string-width)
|
||||||
|
|
||||||
|
@ -52,6 +51,7 @@
|
||||||
(after! which-key
|
(after! which-key
|
||||||
(setq which-key-idle-delay 0.3))
|
(setq which-key-idle-delay 0.3))
|
||||||
|
|
||||||
|
;; some defaults for cursor size, scrolling, and buffer handling
|
||||||
(setq x-stretch-cursor t
|
(setq x-stretch-cursor t
|
||||||
kill-buffer-delete-auto-save-files t
|
kill-buffer-delete-auto-save-files t
|
||||||
scroll-conservatively 0)
|
scroll-conservatively 0)
|
||||||
|
@ -69,15 +69,6 @@
|
||||||
;; import all my customized keybindings based on doom evil mode, but without evil.
|
;; import all my customized keybindings based on doom evil mode, but without evil.
|
||||||
(load! "bindings.el")
|
(load! "bindings.el")
|
||||||
|
|
||||||
;; Lispy mode
|
|
||||||
(setq aw-dispatch-always t)
|
|
||||||
(map! :map lispy-mode-map
|
|
||||||
"M-<left>" nil
|
|
||||||
"M-<right>" nil)
|
|
||||||
(map! :map lispy-mode-map-lispy
|
|
||||||
"M-<left>" nil
|
|
||||||
"M-<right>" nil)
|
|
||||||
|
|
||||||
(setq treemacs-follow-mode t)
|
(setq treemacs-follow-mode t)
|
||||||
(setq treemacs-project-follow-mode t)
|
(setq treemacs-project-follow-mode t)
|
||||||
|
|
||||||
|
@ -122,8 +113,6 @@
|
||||||
"s-M-<right>" 'centaur-tabs-forward
|
"s-M-<right>" 'centaur-tabs-forward
|
||||||
"s-M-<left>" 'centaur-tabs-backward))
|
"s-M-<left>" 'centaur-tabs-backward))
|
||||||
|
|
||||||
(setq default-frame-alist '( (left . 0) (top . 0) (height . 48) (width . 160) ))
|
|
||||||
|
|
||||||
;; use kitty for terminal-here
|
;; use kitty for terminal-here
|
||||||
(setq terminal-here-mac-terminal-command '("kitty"))
|
(setq terminal-here-mac-terminal-command '("kitty"))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue