08/09 commit

This commit is contained in:
Hane 2026-08-09 15:52:14 +02:00
commit 3d73ac99f6
5 changed files with 222 additions and 111 deletions

View file

@ -9,3 +9,5 @@ eval $(ssh-agent -s) >/dev/null
export MANGOHUD_CONFIGFILE=~/.config/MangoHud/MangoHud.conf export MANGOHUD_CONFIGFILE=~/.config/MangoHud/MangoHud.conf
#export MANGOHUD_CONFIGFILE="~/MangoHud.conf" #export MANGOHUD_CONFIGFILE="~/MangoHud.conf"
emacs --daemon >/dev/null

View file

@ -65,7 +65,7 @@ alias grep='grep --color=auto'
alias lsp='ls -al --color=auto' alias lsp='ls -al --color=auto'
alias modosexo='kscreen-doctor output.DP-2.rotation.right' alias modosexo='kscreen-doctor output.DP-2.rotation.right'
alias nomodosexo='kscreen-doctor output.DP-2.rotation.none' alias nomodosexo='kscreen-doctor output.DP-2.rotation.none'
alias clear='clear -x && __prompt_to_bottom_line' # alias clear='clear -x && __prompt_to_bottom_line'
#No icons #No icons
echo -e "\033]32;\007" && tput cuu 1 && tput el && clear echo -e "\033]32;\007" && tput cuu 1 && tput el && clear

View file

@ -10,3 +10,13 @@ profileName=
sshkey=clab sshkey=clab
useSshConfig=true useSshConfig=true
username= username=
[SSH Config][pihanepi]
hostname=192.168.1.45
identifier=pihanepi
importedFromSshConfig=true
port=
profileName=
sshkey=~/.ssh/repi
useSshConfig=true
username=hane

View file

@ -1,9 +1,10 @@
#+TITLE: Hane's GNU Emacs Config #+TITLE: Hane's GNU Emacs Config
#+AUTHOR: Hane #+AUTHOR: Hane
#+DESCRIPTION: Hane's personal Emacs config made with love by Haibane <3. #+DESCRIPTION: Hane's personal Emacs config made with love alongside Haibane <3.
#+STARTUP: showeverything #+STARTUP: showeverything
#+OPTIONS: toc:2 #+OPTIONS: toc:2
* TABLE OF CONTENTS :toc: * TABLE OF CONTENTS :toc:
- [[#Hot reload][Hot reload]]
- [[#load-first][LOAD FIRST]] - [[#load-first][LOAD FIRST]]
- [[#startup-time][Startup Time]] - [[#startup-time][Startup Time]]
- [[#package-management][Package management]] - [[#package-management][Package management]]
@ -69,6 +70,23 @@
- [[#yeetube][Yeetube]] - [[#yeetube][Yeetube]]
- [[#dired][dired]] - [[#dired][dired]]
- [[#marginalia][Marginalia]] - [[#marginalia][Marginalia]]
* Hot reload
#+begin_src emacs-lisp
(defun reload-config ()
"Run a shell command asynchronously."
(interactive)
(org-babel-load-file
(expand-file-name
"config.org"
user-emacs-directory)))
#+end_src
* Always follow symlinks
#+begin_src emacs-lisp
(setq vc-follow-symlinks t)
#+end_src
* LOAD FIRST * LOAD FIRST
** Startup Time ** Startup Time
@ -130,21 +148,29 @@
** Dashboard ** Dashboard
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun no-line-numbers-mode ()
(display-line-numbers-mode 0))
(use-package dashboard (use-package dashboard
:ensure t :ensure t
:config :config
(dashboard-setup-startup-hook)
;;Logo image ;;Logo image
(setq dashboard-startup-banner (cons "~/.emacs.d/logo.jpg" "~/.emacs.d/logo.txt")) (setq dashboard-startup-banner (cons "~/.emacs.d/logo.jpg" "~/.emacs.d/logo.txt"))
;; Content is not centered by default. To center, set ;; Content is not centered by default. To center, set
(setq dashboard-center-content t) (setq dashboard-center-content t)
(setq dashboard-center-content t)
(setq dashboard-image-banner-max-height 350)
(setq dashboard-image-banner-max-width 350)
;; vertically center content ;; vertically center content
(setq dashboard-vertically-center-content nil)) (setq dashboard-vertically-center-content nil)
(add-hook 'dashboard-mode-hook 'no-line-numbers-mode)
(setq initial-buffer-choice 'dashboard-open) (dashboard-setup-startup-hook))
(add-hook 'server-after-make-frame-hook 'dashboard-open)
#+end_src #+end_src
**
** Line wrap and line number ** Line wrap and line number
#+begin_src emacs-lisp #+begin_src emacs-lisp
(global-visual-line-mode t) (global-visual-line-mode t)
@ -168,6 +194,7 @@ Nice font try it
** Startup screen ** Startup screen
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
(setq initial-buffer-choice nil)
#+end_src #+end_src
** Themes ** Themes
@ -190,7 +217,8 @@ I look down on for not using modus-vivendi-tinted
(use-package modus-themes (use-package modus-themes
:after ef-themes :after ef-themes
:ensure nil :ensure nil
:demand t :defer t
;; :demand t
:init :init
;; Starting with version 5.0.0 of the `modus-themes', other packages ;; Starting with version 5.0.0 of the `modus-themes', other packages
;; can be built on top to provide their own "Modus" derivatives. ;; can be built on top to provide their own "Modus" derivatives.
@ -214,9 +242,9 @@ I look down on for not using modus-vivendi-tinted
;; not install and activate those other theme packages. ;; not install and activate those other theme packages.
(modus-themes-include-derivatives-mode 1) (modus-themes-include-derivatives-mode 1)
:bind :bind
(("<f5>" . modus-themes-load-random-dark) ;;(("<f5>" . modus-themes-load-random-dark)
("C-<f5>" . modus-themes-select) ;; ("C-<f5>" . modus-themes-select)
("M-<f5>" . modus-themes-load-random-light)) ;; ("M-<f5>" . modus-themes-load-random-light))
:config :config
;; Your customizations here: ;; Your customizations here:
(setq modus-themes-to-toggle '(modus-operandi modus-vivendi) (setq modus-themes-to-toggle '(modus-operandi modus-vivendi)
@ -245,7 +273,7 @@ I look down on for not using modus-vivendi-tinted
**** ef-themes **** ef-themes
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package ef-themes (use-package ef-themes
:defer nil :defer t
:ensure t :ensure t
:init :init
;; This makes the Modus commands listed below consider only the Ef ;; This makes the Modus commands listed below consider only the Ef
@ -267,9 +295,10 @@ I look down on for not using modus-vivendi-tinted
;; `modus-themes-load-random-light'). ;; `modus-themes-load-random-light').
;;(modus-themes-load-theme 'ef-day) ;;(modus-themes-load-theme 'ef-day)
;;(modus-themes-load-theme 'ef-kassio) ;;(modus-themes-load-theme 'ef-kassio)
(modus-themes-load-theme 'ef-summer)
;;(modus-themes-load-theme 'ef-tritanopia-light) ;;(modus-themes-load-theme 'ef-tritanopia-light)
) )
(modus-themes-load-theme 'ef-summer)
#+end_src #+end_src
** Selection overwrite ** Selection overwrite
@ -773,25 +802,85 @@ install hunspell for spell checking to work
:defer t :defer t
:custom :custom
(dokuwiki-xml-rpc-url "https://wiki.roboces.dev/lib/exe/xmlrpc.php") (dokuwiki-xml-rpc-url "https://wiki.roboces.dev/lib/exe/xmlrpc.php")
(dokuwiki-login-user-name "superuser")) (dokuwiki-login-user-name "hane"))
(defun dokuwiki-custom-open (page)
"Auto dokuwiki-mode buffer created by dokuwiki-open"
(interactive "sPage to open: ")
(dokuwiki-open-page page)
(switch-to-buffer (concat page ".dwiki"))
(dokuwiki-mode))
#+end_src #+end_src
** Dokuwiki Mode ** Dokuwiki Mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package dokuwiki-mode (use-package dokuwiki-mode
:after dokuwiki) :after dokuwiki
:config
(add-to-list 'auto-mode-alist '("\\.dwiki\\'" . dokuwiki-mode)))
(defun dokuwiki-code-tag (b e)
"simple wrapper"
(interactive "r")
(save-restriction
(narrow-to-region b e)
(goto-char (point-min))
(insert "<code>")
(goto-char (point-max))
(insert "</code>")))
(defun dokuwiki-code-inline-tag (b e)
"simple wrapper"
(interactive "r")
(save-restriction
(narrow-to-region b e)
(goto-char (point-min))
(insert "''%%")
(goto-char (point-max))
(insert "%%''")))
(eval-after-load "dokuwiki-mode"
'(progn
(define-key dokuwiki-mode-map (kbd "C-c C-w") 'dokuwiki-code-inline-tag)
(define-key dokuwiki-mode-map (kbd "C-c C-e") 'dokuwiki-code-tag)
))
;; (append '(let ((map (make-sparse-keymap)))
;; (define-key dokuwiki-mode-map )
;; map) 'dokuwiki-mode-map)
#+end_src #+end_src
* ETC * ETC
Deferred builtin package loads and confing fn calls alongside various variables
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package autorevert
:defer t
:config
(global-auto-revert-mode 1) ;; Revert buffers when the underlying file has changed
:custom
(global-auto-revert-non-file-buffers t));; Revert Dired and other buffers
;;(use-package mouse
;; :defer t
;; :config
(context-menu-mode 1)
;;);; right click menu
(use-package xt-mouse
:defer t
:config
(xterm-mouse-mode 1)) ;; mouse support in the terminal
;;(use-package files
;; :defer t
;;:config
(auto-save-visited-mode 1)
;;) ;; read the documentation to get the behavior you want to be exact both auto-save-visited-interval and auto-save-visited-predicate
(setq back-directory-alist '(("." . "~/.config/emacs/backups/"))) ;; so you dont get backup files ending with ~ in the same folder as the file NOTE:maybe there is a way to use the $EMACSDIR instead of Specifying it here (setq back-directory-alist '(("." . "~/.config/emacs/backups/"))) ;; so you dont get backup files ending with ~ in the same folder as the file NOTE:maybe there is a way to use the $EMACSDIR instead of Specifying it here
(setq use-dialog-box nil) ;; Don't pop up UI dialogs when prompting (setq use-dialog-box nil) ;; Don't pop up UI dialogs when prompting
(global-auto-revert-mode 1) ;; Revert buffers when the underlying file has changed
(setq global-auto-revert-non-file-buffers t ) ;; Revert Dired and other buffers
(context-menu-mode 1) ;; right click menu
(xterm-mouse-mode 1) ;; mouse support in the terminal
(setq echo-keystrokes 0.001) ;; make keybinds appear faster after the echo area however overwritten by which-key-idle-delay (setq echo-keystrokes 0.001) ;; make keybinds appear faster after the echo area however overwritten by which-key-idle-delay
;; (global-subword-mode 1) ;; for SubWords!! ;; (global-subword-mode 1) ;; for SubWords!!
(auto-save-visited-mode 1) ;; read the documentation to get the behavior you want to be exact both auto-save-visited-interval and auto-save-visited-predicate
#+end_src #+end_src
* Custom file * Custom file
@ -843,6 +932,7 @@ bind repeat to a better key
;; Map inverse transpose ;; Map inverse transpose
(define-key map (kbd "C-S-t") (lambda () (interactive) (transpose-chars -1))) (define-key map (kbd "C-S-t") (lambda () (interactive) (transpose-chars -1)))
(define-key map (kbd "M-S-t") (lambda () (interactive) (transpose-words -1)))
;; Use regex search tools ;; Use regex search tools
(define-key map (kbd "C-s") 'isearch-forward-regexp) (define-key map (kbd "C-s") 'isearch-forward-regexp)
@ -852,7 +942,7 @@ bind repeat to a better key
(define-key map (kbd "C-z") 'kill-whole-line) (define-key map (kbd "C-z") 'kill-whole-line)
;;Function key shenanigans ;;Function key shenanigans
(define-key map [f5] 'eval-buffer) (define-key map [f5] 'reload-config)
(define-key map [f6] 'comment-region) (define-key map [f6] 'comment-region)
(define-key map [f9] (lambda () (interactive) (find-file user-init-file)) ) (define-key map [f9] (lambda () (interactive) (find-file user-init-file)) )
(define-key map [f8] 'projectile-find-file) (define-key map [f8] 'projectile-find-file)
@ -886,6 +976,10 @@ bind repeat to a better key
(define-key map (kbd "C-c n") 'previous-buffer) (define-key map (kbd "C-c n") 'previous-buffer)
(define-key map (kbd "C-c m") 'next-buffer) (define-key map (kbd "C-c m") 'next-buffer)
;; Maximize/minimize window
(define-key map (kbd "C-c r") 'maximize-window)
(define-key map (kbd "C-c R") 'minimize-window)
;; On-home-row point movement ;; On-home-row point movement
;; (define-key map (kbd "C-; j") 'next-line) ;; (define-key map (kbd "C-; j") 'next-line)
;; (define-key map (kbd "C-; l") 'previous-line) ;; (define-key map (kbd "C-; l") 'previous-line)

5
streetfighter6.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
waydroid app launch app.revenge &
easyeffects &
steam $1