summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulian T <julian@jtle.dk>2018-12-08 12:39:24 +0100
committerjulian T <julian@jtle.dk>2018-12-08 12:39:24 +0100
commit8f0cb15b558a403f79864f3d624c5e5d883b7c07 (patch)
tree37d5ba9ae7a16a8d3cd9baca8b04528708b64d04
parentffd3d31e6123aa6d04915f5ed7af77104a6401c6 (diff)
Lots of new config and settings
-rw-r--r--.config/terminator/config4
-rwxr-xr-x.dwmSession.sh3
-rw-r--r--.emacs15
-rw-r--r--.vimrc104
-rw-r--r--.xinitrc2
-rw-r--r--.zshrc4
6 files changed, 78 insertions, 54 deletions
diff --git a/.config/terminator/config b/.config/terminator/config
index d49a9b6..db2d360 100644
--- a/.config/terminator/config
+++ b/.config/terminator/config
@@ -18,9 +18,9 @@
background_darkness = 0.93
background_type = transparent
cursor_color = "#ffffff"
- font = Monospace 10
+ font = Ubuntu Mono 11
foreground_color = "#ffffff"
- palette = "#050505:#b81109:#1cb228:#baa407:#2c5fad:#e35682:#16a085:#ffffff:#1c1b19:#e8160c:#24e534:#fcdf09:#408afc:#e02c6d:#1abc9c:#ebe3e3"
+ palette = "#000000:#cc0000:#4e9a06:#c4a000:#3465a4:#75507b:#06989a:#d3d7cf:#555753:#ef2929:#8ae234:#fce94f:#729fcf:#ad7fa8:#34e2e2:#eeeeec"
scrollback_infinite = True
scrollbar_position = hidden
show_titlebar = False
diff --git a/.dwmSession.sh b/.dwmSession.sh
index 5e9b4e3..2c427b8 100755
--- a/.dwmSession.sh
+++ b/.dwmSession.sh
@@ -13,7 +13,8 @@ while true; do
BATT=$( acpi -b | sed 's/.*[charging|unknown], \([0-9]*\)%.*/\1/gi' )
TIME=$(/bin/date +"%H:%M")
+ IP=$(hostname -i)
- xsetroot -name "$TIME $BATT%"
+ xsetroot -name "$IP $TIME $BATT%"
sleep 10
done
diff --git a/.emacs b/.emacs
index a09d55b..26dbda3 100644
--- a/.emacs
+++ b/.emacs
@@ -28,3 +28,18 @@
(require 'evil-surround)
(global-evil-surround-mode 1)
+(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 (quote (jedi evil-surround buffer-move auto-complete))))
+(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.
+ )
+
+(add-hook 'python-mode-hook 'jedi:setup)
+(setq jedi:complete-on-dot t) ; optional
diff --git a/.vimrc b/.vimrc
index cd35a78..ee76460 100644
--- a/.vimrc
+++ b/.vimrc
@@ -2,44 +2,38 @@
set nocompatible " be iMproved, required
filetype plugin on
-" set the runtime path to include Vundle and initialize
-set rtp+=~/.vim/bundle/Vundle.vim
-call vundle#begin()
-" alternatively, pass a path where Vundle should install plugins
-"call vundle#begin('~/some/path/here')
+" Plugins
+ " set the runtime path to include Vundle and initialize
+ set rtp+=~/.vim/bundle/Vundle.vim
+ call vundle#begin()
+ " alternatively, pass a path where Vundle should install plugins
+ "call vundle#begin('~/some/path/here')
-" let Vundle manage Vundle, required
-Plugin 'VundleVim/Vundle.vim'
+ " let Vundle manage Vundle, required
+ Plugin 'VundleVim/Vundle.vim'
-Plugin 'tpope/vim-surround'
-Plugin 'tpope/vim-repeat'
-Plugin 'tpope/vim-fugitive'
+ Plugin 'ervandew/supertab'
-Plugin 'vim-latex/vim-latex'
+ Plugin 'tpope/vim-surround'
+ Plugin 'tpope/vim-repeat'
-Plugin 'racer-rust/vim-racer'
+ Plugin 'racer-rust/vim-racer'
+ Plugin 'davidhalter/jedi-vim'
-Plugin 'zchee/deoplete-jedi'
+ Plugin 'agude/vim-eldar'
+ Plugin 'scrooloose/nerdtree'
-if has("nvim")
- Plugin 'Shougo/deoplete.nvim'
-else
- Plugin 'Shougo/deoplete.nvim'
- Plugin 'roxma/nvim-yarp'
- Plugin 'roxma/vim-hug-neovim-rpc'
-endif
+ " Track the engine.
+ Plugin 'SirVer/ultisnips'
-Plugin 'agude/vim-eldar'
-Plugin 'scrooloose/nerdtree'
+ " Snippets are separated from the engine. Add this if you want them:
+ Plugin 'honza/vim-snippets'
-" Track the engine.
-Plugin 'SirVer/ultisnips'
+ Plugin 'junegunn/goyo.vim'
+ Plugin 'jreybert/vimagit'
-" Snippets are separated from the engine. Add this if you want them:
-Plugin 'honza/vim-snippets'
-
-call vundle#end() " required
-filetype plugin indent on " required
+ call vundle#end() " required
+ filetype plugin indent on " required
colorscheme eldar
@@ -52,36 +46,46 @@ set shiftwidth=4
set softtabstop=4
set noexpandtab
-let g:deoplete#enable_at_startup = 1
+set inccommand=split
-tnoremap <C-e> <C-\><C-n>
+" Required for operations modifying multiple buffers like rename.
+set hidden
-" Map C-s
-noremap <silent> <C-S> :update<CR>
+" Snippits
+ " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
+ let g:UltiSnipsExpandTrigger="<c-b>"
+ let g:UltiSnipsJumpForwardTrigger="<c-b>"
+ let g:UltiSnipsJumpBackwardTrigger="<c-z>"
-map <C-n> :NERDTreeToggle<CR>
+ " If you want :UltiSnipsEdit to split your window.
+ let g:UltiSnipsEditSplit="vertical"
-" Required for operations modifying multiple buffers like rename.
-set hidden
+ " inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
+ " inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
+" File finding
+ set path+=**
+ set wildmenu
-" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
-let g:UltiSnipsExpandTrigger="<c-b>"
-let g:UltiSnipsJumpForwardTrigger="<c-b>"
-let g:UltiSnipsJumpBackwardTrigger="<c-z>"
+ let g:netrw_liststyle=3
-" If you want :UltiSnipsEdit to split your window.
-let g:UltiSnipsEditSplit="vertical"
+" autocmd BufEnter * call ncm2#enable_for_buffer()
+" let g:ncm2#auto_popup = 0
+set completeopt=menuone,preview
-inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
-inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
+" Keymapping
+ map <C-n> :NERDTreeToggle<CR>
-" File finding
-set path+=**
-set wildmenu
+ " Leader stuff
+ let mapleader=" "
-let g:netrw_liststyle=3
+ map <leader>z :Goyo<CR>
+ map <leader>mm :make V=1<CR>
+ map <leader>mf :make flash V=1<CR>
+ " Example on filetype specific
+ " autocmd FileType tex map <leader>o :w !detex \| wc -w<CR>
-set inccommand=split
-autocmd FileType python setlocal completeopt-=preview
+" Enforcing filetypes
+ autocmd BufRead,BufNewFile *.ino set filetype=c
+ autocmd FileType python setlocal completeopt-=preview
diff --git a/.xinitrc b/.xinitrc
index 59d8263..12f531c 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,6 +1,6 @@
setxkbmap -layout us -variant altgr-intl
xcape -e "Control_L=Escape"
-feh --bg-fill /home/julian/Pictures/up2.jpg
+feh --bg-fill /home/julian/Pictures/up4.jpg
export _JAVA_AWT_WM_NONREPARENTING=1
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets)
diff --git a/.zshrc b/.zshrc
index aeed47f..5b195de 100644
--- a/.zshrc
+++ b/.zshrc
@@ -140,3 +140,7 @@ export GEM_HOME=$HOME/gems
export PATH=$HOME/gems/bin:$PATH
PATH=/home/julian/.gem/ruby/2.5.0/bin:$PATH
PATH=/home/julian/.local/bin:$PATH
+
+export NVIM_PYTHON_LOG_FILE=/tmp/log
+export NVIM_PYTHON_LOG_LEVEL=DEBUG
+