1
0
Fork 0

Update 2019-09-27

This commit is contained in:
Nguyễn Gia Phong 2019-09-27 20:09:50 +07:00
parent 6b9a1b1a3d
commit 9cef11d014
8 changed files with 66 additions and 9 deletions

View File

@ -525,8 +525,8 @@ local globalkeys = awful.util.table.join(
awful.key({modkey},
"XF86Display",
function ()
awful.spawn".screenlayout/single.sh"
awesome.restart()
awful.spawn.easy_async(".screenlayout/single.sh",
function () awesome.restart() end)
end,
{description = "switch to single display", group = "multimedia"}),
awful.key({}, "Print", nil, spawner(scrot_select),

55
dev/.hgrc Normal file
View File

@ -0,0 +1,55 @@
[ui]
username = Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
[extensions]
color =
histedit =
pager =
rebase =
strip =
[pager]
pager = LESS='FSRX' less
attend = help, annotate, cat, diff, export, glog, log, outgoing, incoming
[diff]
showfunc = True
[color]
mode = terminfo
## Custom colors
color.gray = 244
color.orange = 202
color.lightyellow = 191
color.darkorange = 220
color.brightyellow = 226
status.modified = magenta bold
status.added = green bold
status.removed = red bold
status.deleted = cyan bold
status.unknown = gray bold
status.ignored = gray bold
## Colours for each label
log.branch = cyan
log.summary = lightyellow
log.description = lightyellow
log.bookmark = green
log.tag = darkorange
log.graph = blue
## Colors for each phase
changeset.secret = blue bold
changeset.draft = red bold
changeset.public = orange
desc.here = bold blue_background
[bookmarks]
track.current = True
[alias]
glog = log --graph
top = log --graph -l

View File

@ -24,14 +24,12 @@
'(ac-auto-start nil)
'(ac-expand-on-auto-complete nil)
'(ac-trigger-key "M-RET")
'(ansi-color-names-vector
["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
'(column-number-mode t)
'(custom-enabled-themes (quote (tango)))
'(erc-nick "cnx")
'(package-selected-packages
(quote
(glsl-mode perl6-mode fireplace lua-mode markdown-mode smart-tabs-mode auctex wordnut magit geiser slime pdf-tools)))
(glsl-mode perl6-mode fireplace lua-mode markdown-mode smart-tabs-mode
auctex wordnut magit geiser slime pdf-tools)))
'(safe-local-variable-values (quote ((Syntax . Common-Lisp))))
'(scroll-bar-mode nil)
'(show-paren-mode t)
@ -50,6 +48,7 @@
(savehist-mode 1)
(setq-default inhibit-splash-screen t)
(find-file-noselect "/usr/share/dict/words")
(when (fboundp 'electric-indent-mode) (electric-indent-mode -1))
(setq-default fill-column 79)
(add-hook 'prog-mode-hook 'ruler-mode)
(setq-default indent-tabs-mode nil)
@ -60,6 +59,7 @@
(smart-tabs-insinuate 'c)
(setq c-default-style "linux")
(add-hook 'python-mode-hook (lambda () (setq comment-fill-column 72)))
(add-hook 'LaTeX-mode-hook 'prettify-symbols-mode)
(add-hook 'pdf-tools-enabled-hook 'auto-revert-mode)
(when window-system (set-frame-size (selected-frame) 80 25))

View File

@ -1 +0,0 @@
/usr/share/vim/addons/initialize.py

View File

@ -1 +0,0 @@
/usr/share/vim/addons/jedi_vim.py

View File

@ -0,0 +1 @@
/usr/share/vim/addons/pythonx/jedi_vim.py

View File

@ -0,0 +1 @@
/usr/share/vim/addons/pythonx/jedi_vim_debug.py

View File

@ -21,6 +21,7 @@ autocmd FileType c,h,go,glsl setlocal cindent cinoptions=(0 noexpandtab shiftwid
autocmd FileType rst setlocal shiftwidth=3
autocmd FileType css,javascript,python,perl6 setlocal shiftwidth=4
autocmd FileType python syntax keyword pythonBoolean False True None
autocmd FileType java setlocal omnifunc=javacomplete#Complete
let g:jedi#popup_on_dot = 0
let g:jedi#popup_select_first = 0
let g:jedi#show_call_signatures = 2
@ -37,7 +38,8 @@ Plug 'https://github.com/tpope/vim-abolish.git'
Plug 'https://github.com/alx741/vinfo.git'
Plug 'https://github.com/drmikehenry/vim-fontsize.git'
Plug 'https://github.com/lervag/vimtex.git', {'for': 'tex'}
Plug 'https://github.com/kovisoft/slimv', {'for': 'lisp'}
Plug 'https://github.com/kovisoft/slimv.git', {'for': 'lisp'}
Plug 'https://github.com/artur-shaik/vim-javacomplete2.git', {'for': 'java'}
call plug#end()
set t_Co=256