Compare commits
3
Commits
00ca16dad2
...
2c9e2e1e10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c9e2e1e10 | ||
|
|
0de1b49c58 | ||
|
|
afaad61c44 |
+3
-17
@@ -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.
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -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 }),
|
||||||
|
|||||||
Reference in New Issue
Block a user