Compare commits

..
3 Commits
Author SHA1 Message Date
romanzy313 2c9e2e1e10 fido mode! 2026-11-06 10:33:07 +01:00
romanzy313 0de1b49c58 emacs edited my config 😠 2026-11-06 10:08:58 +01:00
romanzy313 afaad61c44 better git stash 2026-11-06 10:07:06 +01:00
3 changed files with 15 additions and 17 deletions
+3 -17
View File
@@ -9,7 +9,7 @@
;; Disable startup splash screen ;; Disable startup splash screen
(setq inhibit-startup-message t) (setq inhibit-startup-message t)
(setq initial-scratch-message nil) ;; (setq initial-scratch-message nil)
;; Remove noisy UI ;; Remove noisy UI
(menu-bar-mode 0) (menu-bar-mode 0)
@@ -20,6 +20,8 @@
(global-display-line-numbers-mode 1) (global-display-line-numbers-mode 1)
(setq display-line-numbers 'relative) (setq display-line-numbers 'relative)
(fido-mode 1)
;; Initialize the built-in package manager. ;; Initialize the built-in package manager.
;; Add nongnu just in case ;; Add nongnu just in case
(require 'package) (require 'package)
@@ -34,19 +36,3 @@
;; Enable the theme without a confirmation prompt. ;; Enable the theme without a confirmation prompt.
(load-theme 'gruber-darker t) (load-theme 'gruber-darker t)
;; Display a greeting after startup.
(add-hook 'emacs-startup-hook
(lambda () (message "Hello world")))
(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 '(gruber-darker-theme tuareg cmake-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.
)
+4
View File
@@ -1,3 +1,7 @@
# Emacs config # Emacs config
- [Inspiration](https://github.com/rexim/dotfiles) - [Inspiration](https://github.com/rexim/dotfiles)
# Usage learning
- [Ido modes and stuff](https://karthinks.com/software/more-batteries-included-with-emacs/)
@@ -17,6 +17,14 @@ uc("NormFormat", "!c_formatter_42 *.c *.h", { desc = "comply with the norm in C"
vim.cmd("cnoreabbrev wn noautocmd write") vim.cmd("cnoreabbrev wn noautocmd write")
uc("GitBackup", function(opts)
vim.fn.system({ "git", "stash", "push", "-m", opts.args })
vim.fn.system({ "git", "stash", "apply", "--index", "stash@{0}" })
end, {
nargs = 1,
desc = "Stash changes without affecting the status",
})
-- ac("LspAttach", { -- ac("LspAttach", {
-- desc = "Notify user about attached LSP clients", -- desc = "Notify user about attached LSP clients",
-- group = aug("LSPOnAttach", { clear = true }), -- group = aug("LSPOnAttach", { clear = true }),