push emacs

This commit is contained in:
coast 2025-07-07 23:31:40 +03:30
parent 971af2df3b
commit 470c87adf1

View file

@ -21,42 +21,13 @@
(use-package all-the-icons :ensure t :if (display-graphic-p))
(use-package elcord :ensure t :config (elcord-mode 1))
(use-package minimap
:ensure t
:config
(setq minimap-window-location 'right)
(minimap-mode 1))
(use-package centaur-tabs
:ensure t
:init
(setq centaur-tabs-style "bar"
centaur-tabs-set-icons t
centaur-tabs-set-bar 'over
centaur-tabs-set-modified-marker t
centaur-tabs-show-navigation-buttons nil
centaur-tabs-set-close-button nil
centaur-tabs-height 32
centaur-tabs-gray-out-icons 'buffer
centaur-tabs-cycle-scope 'tabs)
:config
(centaur-tabs-mode t)
(centaur-tabs-headline-match)
(centaur-tabs-enable-buffer-reordering)
(setq centaur-tabs-adjust-buffer-order t)
(defun my-centaur-tabs-buffer-groups ()
(list
(cond
((string-equal "*" (substring (buffer-name) 0 1)) "Emacs")
((derived-mode-p 'prog-mode) "Code")
((derived-mode-p 'dired-mode) "Dired")
((memq major-mode '(helpful-mode help-mode)) "Help")
(t "Common"))))
(setq centaur-tabs-buffer-groups-function #'my-centaur-tabs-buffer-groups)
(global-set-key (kbd "C-<prior>") 'centaur-tabs-backward)
(global-set-key (kbd "C-<next>") 'centaur-tabs-forward))
(load-theme 'doom-badger t)
;; get rid of stupid buffer saves
(setq backup-directory-alist
`((".*" . "~/.local/tmp/emacsbackup/")))
(setq make-backup-files t)
(setq backup-by-copying t)
;; Sidebar
(use-package neotree :ensure t :bind ("<f9>" . neotree-toggle))
@ -67,7 +38,7 @@
(use-package consult :ensure t
:bind (("C-s" . consult-line) ("C-x b" . consult-buffer)))
(use-package which-key :ensure t :config (which-key-mode 1))
(use-package swiper :ensure t :bind ("C-r" . swiper-backward))
(use-package swiper :ensure t :bind ("C-s" . swiper))
;; Completion etc.
(use-package company :ensure t :hook (prog-mode . company-mode))
@ -124,3 +95,22 @@
(use-package typescript-mode :ensure t :mode "\\.ts\\'")
(use-package toml-mode :ensure t :mode "\\.toml\\'")
(use-package yaml-mode :ensure t :mode "\\.ya?ml\\'")
(custom-set-variables
;; custom-set-variables 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.
'(package-selected-packages
'(all-the-icons company consult darcula-theme doom-modeline
doom-themes elcord emmet-mode fennel-mode flycheck
gemini-mode go-mode lsp-java lsp-ui lua-mode
macrostep marginalia neotree nix-mode rainbow-mode
rust-mode solarized-theme swiper toml-mode
typescript-mode vertico vterm web-mode yaml-mode
yasnippet zig-mode)))
(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.
)