mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 11:36:16 +01:00
Xresources, .bash_profile, .bashrc, .emacs
This commit is contained in:
parent
45dc8da248
commit
01f1c9ecaa
56
.Xresources
Normal file
56
.Xresources
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
|
||||||
|
! URxvt
|
||||||
|
|
||||||
|
!URxvt*termName: screeN-256coloR
|
||||||
|
URxvt*termName: rxvt-unicode-256color
|
||||||
|
|
||||||
|
!! Colorscheme
|
||||||
|
|
||||||
|
! special
|
||||||
|
*.foreground: #aaaaaa
|
||||||
|
*.background: #171717
|
||||||
|
*.cursorColor: #cccccc
|
||||||
|
|
||||||
|
! black
|
||||||
|
*.color0: #282a2e
|
||||||
|
*.color8: #373b41
|
||||||
|
|
||||||
|
! red
|
||||||
|
*.color1: #c53030
|
||||||
|
*.color9: #d14e4e
|
||||||
|
|
||||||
|
! green
|
||||||
|
*.color2: #b7c52c
|
||||||
|
*.color10: #b8c34f
|
||||||
|
|
||||||
|
! yellow
|
||||||
|
*.color3: #e17a33
|
||||||
|
*.color11: #f4bc4e
|
||||||
|
|
||||||
|
! blue
|
||||||
|
*.color4: #4292d4
|
||||||
|
*.color12: #6e9cc2
|
||||||
|
|
||||||
|
! magenta
|
||||||
|
*.color5: #aa4aca
|
||||||
|
*.color13: #b37ec3
|
||||||
|
|
||||||
|
! cyan
|
||||||
|
*.color6: #50cebe
|
||||||
|
*.color14: #72c1b6
|
||||||
|
|
||||||
|
! white
|
||||||
|
*.color7: #6d99c5
|
||||||
|
*.color15: #aaaaaa
|
||||||
|
|
||||||
|
!! Fonts
|
||||||
|
|
||||||
|
URxvt.font: xft:DroidSansMono:pixelsize=12
|
||||||
|
!*.font: xft:DroidSansMono:style=Regular:size=8
|
||||||
|
!*.boldFont: xft:DroidSans-Bold:style=Bold:size=8
|
||||||
|
!*.italicFont: xft:DroidSans:style=Italic:size=8
|
||||||
|
!*.boldItalicFont: xft:DroidSans:style=Bold Italic:size=8
|
||||||
|
|
||||||
|
!! Scrollbar
|
||||||
|
URxvt.scrollBar: false
|
||||||
|
URxvt.scrollBar_right: false
|
5
.bash_profile
Normal file
5
.bash_profile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#
|
||||||
|
# ~/.bash_profile
|
||||||
|
#
|
||||||
|
|
||||||
|
xrdb "$HOME/.Xresources"
|
24
.bashrc
Normal file
24
.bashrc
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#
|
||||||
|
# /etc/bash.bashrc
|
||||||
|
#
|
||||||
|
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
[[ $DISPLAY ]] && shopt -s checkwinsize
|
||||||
|
|
||||||
|
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
||||||
|
|
||||||
|
## Enable color on ls and grep
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
|
||||||
|
## Add .local/bin to path
|
||||||
|
export PATH="${HOME}/.local/bin:${PATH}"
|
||||||
|
|
||||||
|
if [[ -d "${HOME}/.cargo/bin" ]]; then
|
||||||
|
export PATH="${HOME}/.cargo/bin:${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Set prompt
|
||||||
|
export PS1="\u@\[\e[37m\]\h\[\e[m\]:\[\e[32m\]\w\[\e[m\]\[\e[31m\]\\$\[\e[m\] "
|
58
.emacs
58
.emacs
|
@ -22,7 +22,7 @@ There are two things you can do about this warning:
|
||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(yaml-mode scad-mode lsp-treemacs flycheck-rust telephone-line yasnippet flycheck-pos-tip flycheck magit lsp-ui all-the-icons doom-themes lsp-mode use-package treemacs-evil rust-mode)))
|
'(scad-mode lsp-treemacs flycheck-rust telephone-line yasnippet flycheck-pos-tip flycheck magit lsp-ui all-the-icons doom-themes lsp-mode use-package treemacs-evil rust-mode)))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
@ -59,10 +59,7 @@ There are two things you can do about this warning:
|
||||||
(use-package company-lsp
|
(use-package company-lsp
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(push '(company-lsp company-lua) company-backends)
|
(push 'company-lsp company-backends))
|
||||||
(setq company-lsp-enable-recompletion t)
|
|
||||||
(setq lsp-auto-configure nil)
|
|
||||||
)
|
|
||||||
|
|
||||||
;(use-package company-box
|
;(use-package company-box
|
||||||
; :hook (company-mode . company-box-mode))
|
; :hook (company-mode . company-box-mode))
|
||||||
|
@ -85,46 +82,17 @@ There are two things you can do about this warning:
|
||||||
|
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook ((lua-mode) . lsp)
|
|
||||||
:config
|
:config
|
||||||
(setq lsp-rust-server 'rust-analyzer)
|
(setq lsp-rust-server 'rust-analyzer)
|
||||||
;(setq lsp-rust-server 'rls)
|
;(setq lsp-rust-server 'rls)
|
||||||
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
|
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
|
||||||
; (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-mode))
|
(add-hook 'rust-mode-hook 'lsp))
|
||||||
(add-hook 'rust-mode-hook 'lsp)
|
|
||||||
; (add-hook 'lua-mode-hook 'lsp)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
(use-package lsp-treemacs
|
(use-package lsp-treemacs
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(lsp-treemacs-sync-mode 1))
|
(lsp-treemacs-sync-mode 1))
|
||||||
|
|
||||||
(use-package yaml-mode
|
|
||||||
:ensure t)
|
|
||||||
|
|
||||||
;(use-package lsp-lua-emmy
|
|
||||||
; :demand
|
|
||||||
; :ensure nil
|
|
||||||
; :load-path "~/.emacs.d/lsp-lua-emmy"
|
|
||||||
; :hook (lua-mode . lsp)
|
|
||||||
; :config
|
|
||||||
; (setq lsp-lua-emmy-jar-path (expand-file-name "EmmyLua-LS-all.jar" user-emacs-directory))
|
|
||||||
; )
|
|
||||||
|
|
||||||
;(use-package lua-mode
|
|
||||||
; :ensure t
|
|
||||||
; :mode "\\.lua$"
|
|
||||||
; :interpreter "lua"
|
|
||||||
; :config
|
|
||||||
; (setq lua-indent-level 4)
|
|
||||||
; (setq lua-indent-string-contents t)
|
|
||||||
; (setq lua-prefix-key nil)
|
|
||||||
; )
|
|
||||||
|
|
||||||
;(add-to-list 'company-lsp-filter-candidates '(lsp-emmy-lua . t))
|
|
||||||
|
|
||||||
(use-package all-the-icons
|
(use-package all-the-icons
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
|
@ -133,25 +101,25 @@ There are two things you can do about this warning:
|
||||||
:config
|
:config
|
||||||
(telephone-line-mode 1))
|
(telephone-line-mode 1))
|
||||||
|
|
||||||
(use-package doom-themes
|
;(use-package doom-themes
|
||||||
:ensure t
|
; :ensure t
|
||||||
:config
|
; :config
|
||||||
;; Global settings (defaults)
|
;; Global settings (defaults)
|
||||||
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
|
; (setq doom-themes-enable-bold t ; if nil, bold is universally disabled
|
||||||
doom-themes-enable-italic t) ; if nil, italics is universally disabled
|
; doom-themes-enable-italic t) ; if nil, italics is universally disabled
|
||||||
(load-theme 'doom-one t)
|
; (load-theme 'doom-one t)
|
||||||
|
|
||||||
;; Enable flashing mode-line on errors
|
;; Enable flashing mode-line on errors
|
||||||
(doom-themes-visual-bell-config)
|
; (doom-themes-visual-bell-config)
|
||||||
|
|
||||||
;; Enable custom neotree theme (all-the-icons must be installed!)
|
;; Enable custom neotree theme (all-the-icons must be installed!)
|
||||||
;(doom-themes-neotree-config)
|
;(doom-themes-neotree-config)
|
||||||
;; or for treemacs users
|
;; or for treemacs users
|
||||||
(setq doom-themes-treemacs-theme "doom-colors") ; use the colorful treemacs theme
|
;(setq doom-themes-treemacs-theme "doom-colors") ; use the colorful treemacs theme
|
||||||
(doom-themes-treemacs-config)
|
;(doom-themes-treemacs-config)
|
||||||
|
|
||||||
;; Corrects (and improves) org-mode's native fontification.
|
;; Corrects (and improves) org-mode's native fontification.
|
||||||
(doom-themes-org-config))
|
; (doom-themes-org-config))
|
||||||
|
|
||||||
(global-set-key (kbd "M-RET t") 'treemacs)
|
(global-set-key (kbd "M-RET t") 'treemacs)
|
||||||
(global-set-key (kbd "M-RET s") 'treemacs-switch-workspace)
|
(global-set-key (kbd "M-RET s") 'treemacs-switch-workspace)
|
||||||
|
|
Loading…
Reference in a new issue