Added hypr, waybar, and edited emacs config.

This commit is contained in:
0x221E
2026-03-05 14:09:27 +01:00
parent de99b5ada3
commit 7573f98331
10 changed files with 841 additions and 8 deletions

View File

@@ -41,12 +41,39 @@
(setq company-idle-delay 0.0 ; How long to wait before popup (0 = instant)
company-minimum-prefix-length 1)) ; Show list after typing 1 character
(use-package lsp-mode
:ensure t
:init
:hook ((c-mode . lsp)
(c++-mode . lsp))
:commands lsp)
;(use-package lsp-mode
; :ensure t
; :init
; :hook ( ;(c-mode . lsp)
; (c++-mode . lsp))
; :commands lsp)
(setenv "PATH" (concat "/home/cool/opt/cross/bin:" (getenv "PATH")))
(add-to-list 'exec-path "/home/cool/opt/cross/bin")
(setq-default c-basic-offset 8)
(defun c-style ()
(c-set-offset 'defun-open 0)
(c-set-offset 'substatement-open 0)
(setq c-backslash-column 80)
(setq c-backslash-max-column 80))
(add-hook 'c-mode-common-hook 'c-style)
(setq-default fill-column 80)
(global-display-fill-column-indicator-mode)
(defun my-c-backslash-region-80 ()
(interactive)
(c-backslash-region (region-beginning) (region-end) 80 nil))
(add-hook 'c-mode-hook
(lambda ()
(local-set-key (kbd "C-c \\") 'my-c-backslash-region-80)))
(custom-set-variables
;; custom-set-variables was added by Custom.
@@ -54,8 +81,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(company gruber-darker-theme lsp-mode lsp-ui magit multiple-cursors
rust-mode)))
'(company gruber-darker-theme lsp-mode magit multiple-cursors)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.