Compare commits
5 Commits
3246434f77
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 33cd153a78 | |||
|
5bfe34f0a6
|
|||
| baf6187642 | |||
| 6963e67ab3 | |||
| edbe4725d0 |
@@ -1,7 +0,0 @@
|
|||||||
# ~/.bash_logout: executed by bash(1) when login shell exits.
|
|
||||||
|
|
||||||
# when leaving the console clear the screen to increase privacy
|
|
||||||
|
|
||||||
if [ "$SHLVL" = 1 ]; then
|
|
||||||
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
|
|
||||||
fi
|
|
||||||
4
bash/dot-bash_profile
Normal file
4
bash/dot-bash_profile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
if command -v zoxide
|
||||||
|
then
|
||||||
|
eval "$(zoxide init bash --cmd cd)"
|
||||||
|
fi
|
||||||
162
emacs/dot-emacs
162
emacs/dot-emacs
@@ -1,42 +1,45 @@
|
|||||||
; set variables
|
; Inhibit nasty emacs behaviour
|
||||||
(setq ido-enable-flex-matching t)
|
|
||||||
(setq ido-everywhere t)
|
|
||||||
(setq inhibit-splash-screen t)
|
(setq inhibit-splash-screen t)
|
||||||
(setq tab-width 4)
|
(setq make-backup-files nil)
|
||||||
(setq custom-file "~/emacs-custom.el")
|
|
||||||
(setq ring-bell-function 'ignore)
|
|
||||||
(setq display-line-numbers-type 'relative)
|
|
||||||
|
|
||||||
; Toggle modes
|
|
||||||
(require 'ido-vertical-mode )
|
|
||||||
(ido-mode 1)
|
|
||||||
(ido-vertical-mode 1)
|
|
||||||
(ido-everywhere 1)
|
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(toggle-scroll-bar -1)
|
(toggle-scroll-bar -1)
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
|
(setq custom-file "~/emacs-custom.el") ; Don't mess with my config
|
||||||
|
(setq ring-bell-function 'ignore)
|
||||||
|
(put 'dired-find-alternate-file 'disabled nil)
|
||||||
|
|
||||||
|
|
||||||
|
; Set basic editor defaults
|
||||||
|
(setq tab-width 4)
|
||||||
|
(setq display-line-numbers-type 'relative)
|
||||||
(global-display-line-numbers-mode 1)
|
(global-display-line-numbers-mode 1)
|
||||||
|
|
||||||
; Install and load packages
|
|
||||||
|
(use-package catppuccin-theme)
|
||||||
|
|
||||||
|
; Enable and configure ido
|
||||||
|
(setq ido-enable-flex-matching t)
|
||||||
|
(setq ido-everywhere t)
|
||||||
|
(ido-mode 1)
|
||||||
|
(require 'ido-vertical-mode )
|
||||||
|
(ido-vertical-mode 1)
|
||||||
|
|
||||||
|
|
||||||
|
; Init Load-package plugin manager
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(require 'use-package-ensure)
|
(require 'use-package-ensure)
|
||||||
|
(setq use-package-always-ensure t)
|
||||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||||
("elpa" . "https://elpa.gnu.org/packages/")
|
("elpa" . "https://elpa.gnu.org/packages/")
|
||||||
("non-gnu" . "https://elpa.nongnu.org/nongnu/")))
|
("non-gnu" . "https://elpa.nongnu.org/nongnu/")))
|
||||||
(when (not package-archive-contents)
|
(when (not package-archive-contents)
|
||||||
(package-refresh-contents))
|
(package-refresh-contents))
|
||||||
|
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
(setq use-package-always-ensure t)
|
(use-package vertico
|
||||||
|
:init (vertico-mode))
|
||||||
(use-package catppuccin-theme)
|
|
||||||
(use-package magit )
|
|
||||||
(use-package paredit )
|
|
||||||
|
|
||||||
; keyboard
|
|
||||||
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) ;; Prevent me from confusion with VIM
|
|
||||||
|
|
||||||
|
; Keys
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:init
|
:init
|
||||||
(setq evil-want-integration t)
|
(setq evil-want-integration t)
|
||||||
@@ -52,16 +55,10 @@
|
|||||||
:after evil
|
:after evil
|
||||||
:config
|
:config
|
||||||
(evil-collection-init))
|
(evil-collection-init))
|
||||||
|
(evil-set-initial-state 'dired-mode 'emacs)
|
||||||
|
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) ;; Prevent me from confusion with VIM
|
||||||
|
|
||||||
(use-package all-the-icons)
|
; Fuzzy finder
|
||||||
(use-package nerd-icons)
|
|
||||||
|
|
||||||
|
|
||||||
(use-package doom-modeline
|
|
||||||
:init (doom-modeline-mode 1)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
(use-package fzf
|
(use-package fzf
|
||||||
:bind
|
:bind
|
||||||
:config
|
:config
|
||||||
@@ -73,52 +70,107 @@
|
|||||||
fzf/window-height 15) 'nowarnings )
|
fzf/window-height 15) 'nowarnings )
|
||||||
|
|
||||||
|
|
||||||
(use-package projectile)
|
|
||||||
(projectile-mode +1)
|
(use-package all-the-icons)
|
||||||
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
|
(use-package nerd-icons)
|
||||||
|
|
||||||
|
|
||||||
(use-package consult
|
(use-package doom-modeline
|
||||||
:hook (completion-list-mode . consult-preview-at-point-mode)
|
:init (doom-modeline-mode 1)
|
||||||
|
|
||||||
)
|
)
|
||||||
(use-package consult-company)
|
|
||||||
(use-package consult-flycheck)
|
|
||||||
(use-package consult-lsp)
|
|
||||||
(use-package consult-projectile)
|
|
||||||
|
|
||||||
(use-package dap-mode)
|
|
||||||
|
;; IDE Mode
|
||||||
|
(use-package project)
|
||||||
|
(use-package eglot)
|
||||||
|
(use-package eldoc)
|
||||||
|
(use-package flymake)
|
||||||
(use-package flycheck)
|
(use-package flycheck)
|
||||||
|
(use-package magit )
|
||||||
|
(use-package paredit )
|
||||||
|
(use-package tree-sitter)
|
||||||
|
(use-package dap-mode)
|
||||||
|
(use-package consult
|
||||||
|
:bind ; Keybindings
|
||||||
|
:hook (completion-list-mode . consult-preview-at-point-mode)
|
||||||
|
:init
|
||||||
|
(setq register-preview-delay 0.5)
|
||||||
|
(setq xref-show-xrefs-function #'consult-xref
|
||||||
|
xref-show-definitions-function #'consult-xref))
|
||||||
|
; set up code completion
|
||||||
(use-package company)
|
(use-package company)
|
||||||
(use-package ivy)
|
(global-company-mode)
|
||||||
|
; Git
|
||||||
|
(use-package magit)
|
||||||
|
(use-package magit-delta
|
||||||
|
:hook (magit-mode . magit-delta-mode))
|
||||||
|
|
||||||
(require 'eglot)
|
; Language Server Configuration
|
||||||
|
|
||||||
|
; Set up Java
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'(java-mode "jdtls" "--configuration" "~/.cache/jdtls"
|
||||||
|
"--data" "~/.cache/jdtls-data"))
|
||||||
|
(add-hook 'java-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
|
; gradle build system
|
||||||
(add-to-list 'eglot-server-programs
|
(add-to-list 'eglot-server-programs
|
||||||
'("gradle"
|
'("gradle"
|
||||||
("gradle" "--no-daemon" "tasks" "--quiet" "--info")
|
("gradle" "--no-daemon" "tasks" "--quiet" "--info")
|
||||||
(mode . gradle-mode)
|
(mode . gradle-mode)))
|
||||||
(file-mode . "java")
|
|
||||||
(file-types . ("java" "groovy"))))
|
|
||||||
|
|
||||||
|
; Set up CSharp
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'(csharp-mode . ("csharp-ls")))
|
||||||
|
(add-hook 'csharp-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
|
; Set up Rust
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
'(rust-mode . ("rust-analyzer")))
|
||||||
|
(add-hook rust-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
|
; Set up Python
|
||||||
(use-package lsp-pyright
|
(use-package lsp-pyright
|
||||||
:custom (lsp-pyright-langserver-command "pyright")
|
:custom (lsp-pyright-langserver-command "pyright")
|
||||||
:hook (python-mode . (lambda ()
|
:hook (python-mode . (lambda ()
|
||||||
(lsp))))
|
(lsp))))
|
||||||
(use-package lsp-java
|
|
||||||
:config (add-hook 'java-mode-hook 'lsp))
|
|
||||||
|
|
||||||
;; Set font
|
; Customize look and feel
|
||||||
(add-to-list 'default-frame-alist '(font . "SF Mono"))
|
(add-to-list 'default-frame-alist '(font . "SF Mono"))
|
||||||
|
(add-to-list 'default-frame-alist '(font . "Iosevka Nerd Font"))
|
||||||
(set-face-attribute 'default t :font "SF Mono")
|
(set-face-attribute 'default t :font "SF Mono")
|
||||||
|
|
||||||
;; Load catppuccin theme
|
(use-package material-theme)
|
||||||
(load-theme 'catppuccin :no-confirm)
|
(use-package catppuccin-theme)
|
||||||
|
(use-package all-the-icons)
|
||||||
|
(use-package nerd-icons
|
||||||
|
:custom (nerd-icons-font-family "Symbols Nerd Font Mono")
|
||||||
|
)
|
||||||
|
|
||||||
|
(use-package doom-modeline
|
||||||
|
:init (doom-modeline-mode 1)
|
||||||
|
:custom ((doom-modeline-height 15)
|
||||||
|
(doom-modeline-icon-family 'nerd-icons)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
;; Set the Catppuccin flavor
|
||||||
(setq catppuccin-flavor 'frappe)
|
(setq catppuccin-flavor 'frappe)
|
||||||
|
(set-frame-parameter nil 'alpha-background 80)
|
||||||
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
|
(load-theme 'catppuccin :no-confirm)
|
||||||
|
|
||||||
|
;; Disable Catppuccin when running in a low-color Windows terminal
|
||||||
|
(when (and (and (not (display-graphic-p))
|
||||||
|
(eq system-type 'windows-nt)
|
||||||
|
(<= (display-color-cells) 16)))
|
||||||
|
(disable-theme 'catppuccin)
|
||||||
|
(message "Catppuccin disabled: low-color Windows terminal detected"))
|
||||||
|
|
||||||
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
|
(load custom-file)
|
||||||
|
|
||||||
;; Create semi-transparent background
|
;; Create semi-transparent background
|
||||||
(set-frame-parameter nil 'alpha-background 80)
|
(set-frame-parameter nil 'alpha-background 80)
|
||||||
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
|
|
||||||
(load custom-file 'noerror 'nomessage)
|
(load custom-file 'noerror 'nomessage)
|
||||||
(put 'dired-find-alternate-file 'disabled nil)
|
|
||||||
|
|||||||
1
nvim
1
nvim
Submodule nvim deleted from 430a2879e9
@@ -1,6 +1,12 @@
|
|||||||
colorscheme retrobox
|
colorscheme retrobox
|
||||||
set relativenumber number
|
set relativenumber number
|
||||||
set packpath^=~/.vim/pack/
|
set packpath^=~/.vim/pack/
|
||||||
|
if has("gui_gnome") || has("gui_win32")
|
||||||
set guioptions -=m
|
set guioptions -=m
|
||||||
set guioptions -=T
|
set guioptions -=T
|
||||||
|
endif
|
||||||
set guicursor = ""
|
set guicursor = ""
|
||||||
|
syntax on
|
||||||
|
filetype on
|
||||||
|
filetype plugin on
|
||||||
|
filetype indent on
|
||||||
|
|||||||
Reference in New Issue
Block a user