Dodane visual line

This commit is contained in:
pali112 2025-04-06 17:07:17 +02:00
parent 4a52bd21bc
commit 96a809925e
1 changed files with 21 additions and 32 deletions

53
init.el
View File

@ -54,8 +54,7 @@ Missing packages are automatically installed."
'treemacs
'yasnippet
'winum
'lsp-treemacs
'cl-lib)
'lsp-treemacs)
(require 'scad-mode)
@ -507,6 +506,10 @@ Missing packages are automatically installed."
'((t (:background "#FF5F5F" :foreground "black" :weight bold)))
"Styl dla REPLACE state.")
(defface evil-visual-line-tag
'((t (:background "#ffaf87" :foreground "black" :weight bold)))
"Styl dla VISUAL LINE state.")
(defvar evil-mode-line-tag ""
"Zmienna przechowująca kolorowy tag trybu evil.")
@ -520,6 +523,8 @@ Missing packages are automatically installed."
(propertize " INSERT " 'face 'evil-insert-tag))
((evil-replace-state-p)
(propertize " REPLACE " 'face 'evil-replace-tag))
((and (evil-visual-state-p) (eq evil-visual-selection 'line))
(propertize " V-LINE " 'face 'evil-visual-line-tag))
(t "")))
(force-mode-line-update))
@ -541,34 +546,6 @@ Missing packages are automatically installed."
;; Finalny pasek mode-line
;; ----------------------------
;; (setq-default mode-line-format
;; (list
;; ;; TRYB EVIL
;; '(:eval evil-mode-line-tag)
;; " "
;; ;; NUMER OKNA
;; '(:eval
;; (let ((num (winum-get-number)))
;; (when num
;; (let ((color (if (eq (selected-window) (get-buffer-window))
;; "#FFA500" ;; pomarańczowy dla aktywnego
;; "gray"))) ;; szary dla nieaktywnego, jeśli chcesz
;; (propertize (format " #%d " num)
;; 'face `(:foreground ,color :weight bold))))))
;; " "
;; ;; NAZWA BUFORA
;; 'mode-line-buffer-identification
;; " "
;; ;; LINIA:KOLUMNA
;; "%l:%c "
;; ;; PROGRESS W PLIKU
;; "%p "
;; ;; TRYBY (np. Python, LSP itp.)
;; 'mode-line-modes
;; " "
;; ;; VENV
;; '(:eval (my-get-current-venv))))
(setq-default mode-line-format
@ -838,9 +815,13 @@ Missing packages are automatically installed."
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("d5fd482fcb0fe42e849caba275a01d4925e422963d1cd165565b31d3f4189c87" "09b833239444ac3230f591e35e3c28a4d78f1556b107bafe0eb32b5977204d93" default))
'("d5fd482fcb0fe42e849caba275a01d4925e422963d1cd165565b31d3f4189c87"
"09b833239444ac3230f591e35e3c28a4d78f1556b107bafe0eb32b5977204d93"
default))
'(package-selected-packages
'(org-roam evil-commentary yasnippet which-key vterm request pyvenv polymode neotree magit lsp-ui lsp-treemacs jupyter highlight-indentation gruvbox-theme evil-org evil-leader deferred company anaphora)))
'(blacken company evil-commentary evil-leader evil-org flycheck
gruvbox-theme jupyter lsp-treemacs lsp-ui magit org-roam
pyvenv scad-mode vterm which-key winum yasnippet-snippets)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@ -971,5 +952,13 @@ Missing packages are automatically installed."
(define-key evil-insert-state-map (kbd "C-v") 'yank))
(add-hook 'prog-mode-hook #'hs-minor-mode)
;; Skróty:
(define-key prog-mode-map (kbd "C-c h h") 'hs-hide-block)
(define-key prog-mode-map (kbd "C-c h s") 'hs-show-block)
(define-key prog-mode-map (kbd "C-c h H") 'hs-hide-all)
(define-key prog-mode-map (kbd "C-c h S") 'hs-show-all)