diff --git a/.bash_aliases b/.bash_aliases index 2af1deb..1d373a1 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -10,3 +10,5 @@ alias wiki='/usr/bin/python2 ~/bin/mygit/misc_pytools/wikipedia_search/wikipedia alias btc='curl -sSL https://coinbase.com/api/v1/prices/historical | head -n 1 | sed "s|^.*,|$|" | sed "s|\(\.[0-9]$\)|\10|"' alias rfc="/home/booboy/bin/mygit/rfc/rfc.sh" alias current_temp='python3 /home/booboy/bin/mygit/misc_pytools/get_weather/weather.py |grep "\"temp\":" | tr -d ','| column -t' +alias vim='/usr/bin/nvim' +alias vi='/usr/bin/nvim' diff --git a/.bash_profile b/.bash_profile index 4541413..20bf260 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,7 +1,6 @@ # # ~/.bash_profile # - [[ -f ~/.bashrc ]] && . ~/.bashrc [[ -f ~/.bash_functions ]] && . ~/.bash_functions [[ -f ~/.bash_aliases ]] && . ~/.bash_aliases diff --git a/.vim/bundle/Vundle.vim b/.vim/bundle/Vundle.vim index fcc2042..9a38216 160000 --- a/.vim/bundle/Vundle.vim +++ b/.vim/bundle/Vundle.vim @@ -1 +1 @@ -Subproject commit fcc204205e3305c4f86f07e09cd756c7d06f0f00 +Subproject commit 9a38216a1c0c597f978d73547d37681fc689c90d diff --git a/.vim/bundle/ctrlp.vim b/.vim/bundle/ctrlp.vim new file mode 160000 index 0000000..564176f --- /dev/null +++ b/.vim/bundle/ctrlp.vim @@ -0,0 +1 @@ +Subproject commit 564176f01d7f3f7f8ab452ff4e1f5314de7b0981 diff --git a/.vim/bundle/nerdtree b/.vim/bundle/nerdtree new file mode 160000 index 0000000..a172d7c --- /dev/null +++ b/.vim/bundle/nerdtree @@ -0,0 +1 @@ +Subproject commit a172d7cfcb4fe9b927dcc24184204fc89d826301 diff --git a/.vim/bundle/supertab b/.vim/bundle/supertab new file mode 160000 index 0000000..40fe711 --- /dev/null +++ b/.vim/bundle/supertab @@ -0,0 +1 @@ +Subproject commit 40fe711e088e2ab346738233dd5adbb1be355172 diff --git a/.vim/bundle/tcomment_vim b/.vim/bundle/tcomment_vim new file mode 160000 index 0000000..c66a6da --- /dev/null +++ b/.vim/bundle/tcomment_vim @@ -0,0 +1 @@ +Subproject commit c66a6dab214e3944259acef423b924c994a853b9 diff --git a/.vim/bundle/tlib_vim b/.vim/bundle/tlib_vim new file mode 160000 index 0000000..c96db61 --- /dev/null +++ b/.vim/bundle/tlib_vim @@ -0,0 +1 @@ +Subproject commit c96db6151fde9d06a8fed71b7df05c6dbb3f14fe diff --git a/.vim/bundle/vim-addon-mw-utils b/.vim/bundle/vim-addon-mw-utils new file mode 160000 index 0000000..295862b --- /dev/null +++ b/.vim/bundle/vim-addon-mw-utils @@ -0,0 +1 @@ +Subproject commit 295862ba6be47ec3b11b6c85c10d982ffd9bc0b2 diff --git a/.vim/bundle/vim-fugitive b/.vim/bundle/vim-fugitive new file mode 160000 index 0000000..3e0bd86 --- /dev/null +++ b/.vim/bundle/vim-fugitive @@ -0,0 +1 @@ +Subproject commit 3e0bd86b99c50691f830d9e25a4bbe2a88078f8f diff --git a/.vim/bundle/vim-niji b/.vim/bundle/vim-niji new file mode 160000 index 0000000..4441237 --- /dev/null +++ b/.vim/bundle/vim-niji @@ -0,0 +1 @@ +Subproject commit 444123706d89685fe8a2fd2a7d21e0dd69500684 diff --git a/.vim/bundle/vim-rails b/.vim/bundle/vim-rails new file mode 160000 index 0000000..3f2951e --- /dev/null +++ b/.vim/bundle/vim-rails @@ -0,0 +1 @@ +Subproject commit 3f2951e107dcf72dd67ae56c6ba72ffb4c409520 diff --git a/.vim/bundle/vim-snipmate b/.vim/bundle/vim-snipmate new file mode 160000 index 0000000..a9802f2 --- /dev/null +++ b/.vim/bundle/vim-snipmate @@ -0,0 +1 @@ +Subproject commit a9802f2351910f64b70fb10b63651e6ff6b8125e diff --git a/.vim/bundle/vim-snippets b/.vim/bundle/vim-snippets new file mode 160000 index 0000000..f02955d --- /dev/null +++ b/.vim/bundle/vim-snippets @@ -0,0 +1 @@ +Subproject commit f02955d40b64c9db6f6bdeee40d0f44a00c58865 diff --git a/.vim/bundle/vim-surround b/.vim/bundle/vim-surround new file mode 160000 index 0000000..e49d6c2 --- /dev/null +++ b/.vim/bundle/vim-surround @@ -0,0 +1 @@ +Subproject commit e49d6c2459e0f5569ff2d533b4df995dd7f98313 diff --git a/.vim/bundle/vim-test b/.vim/bundle/vim-test new file mode 160000 index 0000000..697f3e8 --- /dev/null +++ b/.vim/bundle/vim-test @@ -0,0 +1 @@ +Subproject commit 697f3e87eb10ca91d55152749fec4e7217ff754e diff --git a/.vim/pack/git-plugins/start/nerdtree b/.vim/pack/git-plugins/start/nerdtree new file mode 160000 index 0000000..a172d7c --- /dev/null +++ b/.vim/pack/git-plugins/start/nerdtree @@ -0,0 +1 @@ +Subproject commit a172d7cfcb4fe9b927dcc24184204fc89d826301 diff --git a/.vim/pack/git-plugins/start/nerdtree_plugin b/.vim/pack/git-plugins/start/nerdtree_plugin new file mode 160000 index 0000000..a172d7c --- /dev/null +++ b/.vim/pack/git-plugins/start/nerdtree_plugin @@ -0,0 +1 @@ +Subproject commit a172d7cfcb4fe9b927dcc24184204fc89d826301 diff --git a/.vim/pack/git-plugins/start/vim-rails b/.vim/pack/git-plugins/start/vim-rails new file mode 160000 index 0000000..3f2951e --- /dev/null +++ b/.vim/pack/git-plugins/start/vim-rails @@ -0,0 +1 @@ +Subproject commit 3f2951e107dcf72dd67ae56c6ba72ffb4c409520 diff --git a/.vim/plugin/tslime.vim b/.vim/plugin/tslime.vim new file mode 100644 index 0000000..67c061e --- /dev/null +++ b/.vim/plugin/tslime.vim @@ -0,0 +1,125 @@ +" Tslime.vim. Send portion of buffer to tmux instance +" Maintainer: C.Coutinho +" Licence: DWTFYWTPL + +if exists("g:loaded_tslime") && g:loaded_tslime + finish +endif + +let g:loaded_tslime = 1 + +if !exists("g:tslime_ensure_trailing_newlines") + let g:tslime_ensure_trailing_newlines = 0 +endif +if !exists("g:tslime_normal_mapping") + let g:tslime_normal_mapping = '' +endif +if !exists("g:tslime_visual_mapping") + let g:tslime_visual_mapping = '' +endif +if !exists("g:tslime_vars_mapping") + let g:tslime_vars_mapping = 'v' +endif + +" Main function. +" Use it in your script if you want to send text to a tmux session. +function! Send_to_Tmux(text) + if !exists("b:tmux_sessionname") || !exists("b:tmux_windowname") || !exists("b:tmux_panenumber") + if exists("g:tmux_sessionname") && exists("g:tmux_windowname") && exists("g:tmux_panenumber") + let b:tmux_sessionname = g:tmux_sessionname + let b:tmux_windowname = g:tmux_windowname + let b:tmux_panenumber = g:tmux_panenumber + else + call Tmux_Vars() + end + end + + let target = b:tmux_sessionname . ":" . b:tmux_windowname . "." . b:tmux_panenumber + + " Look, I know this is horrifying. I'm sorry. + " + " THE PROBLEM: Certain REPLs (e.g.: SBCL) choke if you paste an assload of + " text into them all at once (where 'assload' is 'something more than a few + " hundred characters but fewer than eight thousand'). They'll seem to get out + " of sync with the paste, and your code gets mangled. + " + " THE SOLUTION: We paste a single line at a time, and sleep for a bit in + " between each one. This gives the REPL time to process things and stay + " caught up. 2 milliseconds seems to be enough of a sleep to avoid breaking + " things and isn't too painful to sit through. + " + " This is my life. This is computering in 2014. + for line in split(a:text, '\n\zs' ) + call set_tmux_buffer(line) + call system("tmux paste-buffer -dpt " . target) + sleep 2m + endfor +endfunction + +function! s:ensure_newlines(text) + let text = a:text + let trailing_newlines = matchstr(text, '\v\n*$') + let spaces_to_add = g:tslime_ensure_trailing_newlines - strlen(trailing_newlines) + + while spaces_to_add > 0 + let spaces_to_add -= 1 + let text .= "\n" + endwhile + + return text +endfunction + +function! s:set_tmux_buffer(text) + call system("tmux set-buffer -- '" . substitute(a:text, "'", "'\\\\''", 'g') . "'") +endfunction + +function! SendToTmux(text) + call Send_to_Tmux(s:ensure_newlines(a:text)) +endfunction + +function! SendToTmuxRaw(text) + call Send_to_Tmux(a:text) +endfunction + +" Session completion +function! Tmux_Session_Names(A,L,P) + return system("tmux list-sessions | sed -e 's/:.*$//'") +endfunction + +" Window completion +function! Tmux_Window_Names(A,L,P) + return system("tmux list-windows -t" . b:tmux_sessionname . ' | grep -e "^\w:" | sed -e "s/ \[[0-9x]*\]$//"') +endfunction + +" Pane completion +function! Tmux_Pane_Numbers(A,L,P) + return system("tmux list-panes -t " . b:tmux_sessionname . ":" . b:tmux_windowname . " | sed -e 's/:.*$//'") +endfunction + +" set tslime.vim variables +function! s:Tmux_Vars() + let b:tmux_sessionname = '' + while b:tmux_sessionname == '' + let b:tmux_sessionname = input("session name: ", "", "custom,Tmux_Session_Names") + endwhile + let b:tmux_windowname = substitute(input("window name: ", "", "custom,Tmux_Window_Names"), ":.*$" , '', 'g') + let b:tmux_panenumber = input("pane number: ", "", "custom,Tmux_Pane_Numbers") + + if b:tmux_windowname == '' + let b:tmux_windowname = '0' + endif + + if b:tmux_panenumber == '' + let b:tmux_panenumber = '0' + endif + + let g:tmux_sessionname = b:tmux_sessionname + let g:tmux_windowname = b:tmux_windowname + let g:tmux_panenumber = b:tmux_panenumber +endfunction + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +execute "vnoremap" . g:tslime_visual_mapping . ' "ry:call Send_to_Tmux(@r)' +execute "nnoremap" . g:tslime_normal_mapping . ' vip"ry:call Send_to_Tmux(@r)' +execute "nnoremap" . g:tslime_vars_mapping . ' :call Tmux_Vars()' diff --git a/.vimrc b/.vimrc index d515ecf..72e96dd 100644 --- a/.vimrc +++ b/.vimrc @@ -66,3 +66,5 @@ if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") \| exe "normal! g'\"" | endif endif + +autocmd filetype lisp,scheme,art setlocal equalprg=scmindent.rkt diff --git a/emacs/.spacemacs b/emacs/.spacemacs new file mode 100644 index 0000000..23f00f7 --- /dev/null +++ b/emacs/.spacemacs @@ -0,0 +1,469 @@ +;; -*- mode: emacs-lisp -*- +;; This file is loaded by Spacemacs at startup. +;; It must be stored in your home directory. + +(defun dotspacemacs/layers () + "Layer configuration: +This function should only modify configuration layer settings." + (setq-default + ;; Base distribution to use. This is a layer contained in the directory + ;; `+distribution'. For now available distributions are `spacemacs-base' + ;; or `spacemacs'. (default 'spacemacs) + dotspacemacs-distribution 'spacemacs + + ;; Lazy installation of layers (i.e. layers are installed only when a file + ;; with a supported type is opened). Possible values are `all', `unused' + ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers + ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will + ;; lazy install any layer that support lazy installation even the layers + ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy + ;; installation feature and you have to explicitly list a layer in the + ;; variable `dotspacemacs-configuration-layers' to install it. + ;; (default 'unused) + dotspacemacs-enable-lazy-installation 'unused + + ;; If non-nil then Spacemacs will ask for confirmation before installing + ;; a layer lazily. (default t) + dotspacemacs-ask-for-lazy-installation t + + ;; If non-nil layers with lazy install support are lazy installed. + ;; List of additional paths where to look for configuration layers. + ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') + dotspacemacs-configuration-layer-path '() + + ;; List of configuration layers to load. + dotspacemacs-configuration-layers + '( + ;; ---------------------------------------------------------------- + ;; Example of useful layers you may want to use right away. + ;; Uncomment some layer names and press `SPC f e R' (Vim style) or + ;; `M-m f e R' (Emacs style) to install them. + ;; ---------------------------------------------------------------- + restclient + helm + auto-completion + better-defaults + emacs-lisp + git + markdown + neotree + org + (shell :variables + shell-default-height 30 + shell-default-position 'bottom) + ;;spell-checking + syntax-checking + version-control + ) + + ;; List of additional packages that will be installed without being + ;; wrapped in a layer. If you need some configuration for these + ;; packages, then consider creating a layer. You can also put the + ;; configuration in `dotspacemacs/user-config'. + ;; To use a local version of a package, use the `:location' property: + ;; '(your-package :location "~/path/to/your-package/") + ;; Also include the dependencies as they will not be resolved automatically. + dotspacemacs-additional-packages '() + + ;; A list of packages that cannot be updated. + dotspacemacs-frozen-packages '() + + ;; A list of packages that will not be installed and loaded. + dotspacemacs-excluded-packages '() + + ;; Defines the behaviour of Spacemacs when installing packages. + ;; Possible values are `used-only', `used-but-keep-unused' and `all'. + ;; `used-only' installs only explicitly used packages and deletes any unused + ;; packages as well as their unused dependencies. `used-but-keep-unused' + ;; installs only the used packages but won't delete unused ones. `all' + ;; installs *all* packages supported by Spacemacs and never uninstalls them. + ;; (default is `used-only') + dotspacemacs-install-packages 'used-only)) + +(defun dotspacemacs/init () + "Initialization: +This function is called at the very beginning of Spacemacs startup, +before layer configuration. +It should only modify the values of Spacemacs settings." + ;; This setq-default sexp is an exhaustive list of all the supported + ;; spacemacs settings. + (setq-default + ;; If non-nil ELPA repositories are contacted via HTTPS whenever it's + ;; possible. Set it to nil if you have no way to use HTTPS in your + ;; environment, otherwise it is strongly recommended to let it set to t. + ;; This variable has no effect if Emacs is launched with the parameter + ;; `--insecure' which forces the value of this variable to nil. + ;; (default t) + dotspacemacs-elpa-https t + + ;; Maximum allowed time in seconds to contact an ELPA repository. + ;; (default 5) + dotspacemacs-elpa-timeout 5 + + ;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup finishes. + ;; This is an advanced option and should not be changed unless you suspect + ;; performance issues due to garbage collection operations. + ;; (default '(100000000 0.1)) + dotspacemacs-gc-cons '(100000000 0.1) + + ;; If non-nil then Spacelpa repository is the primary source to install + ;; a locked version of packages. If nil then Spacemacs will install the + ;; latest version of packages from MELPA. (default nil) + dotspacemacs-use-spacelpa nil + + ;; If non-nil then verify the signature for downloaded Spacelpa archives. + ;; (default nil) + dotspacemacs-verify-spacelpa-archives nil + + ;; If non-nil then spacemacs will check for updates at startup + ;; when the current branch is not `develop'. Note that checking for + ;; new versions works via git commands, thus it calls GitHub services + ;; whenever you start Emacs. (default nil) + dotspacemacs-check-for-update nil + + ;; If non-nil, a form that evaluates to a package directory. For example, to + ;; use different package directories for different Emacs versions, set this + ;; to `emacs-version'. (default 'emacs-version) + dotspacemacs-elpa-subdirectory 'emacs-version + + ;; One of `vim', `emacs' or `hybrid'. + ;; `hybrid' is like `vim' except that `insert state' is replaced by the + ;; `hybrid state' with `emacs' key bindings. The value can also be a list + ;; with `:variables' keyword (similar to layers). Check the editing styles + ;; section of the documentation for details on available variables. + ;; (default 'vim) + dotspacemacs-editing-style 'vim + + ;; If non-nil output loading progress in `*Messages*' buffer. (default nil) + dotspacemacs-verbose-loading nil + + ;; Specify the startup banner. Default value is `official', it displays + ;; the official spacemacs logo. An integer value is the index of text + ;; banner, `random' chooses a random text banner in `core/banners' + ;; directory. A string value must be a path to an image format supported + ;; by your Emacs build. + ;; If the value is nil then no banner is displayed. (default 'official) + dotspacemacs-startup-banner 'official + + ;; List of items to show in startup buffer or an association list of + ;; the form `(list-type . list-size)`. If nil then it is disabled. + ;; Possible values for list-type are: + ;; `recents' `bookmarks' `projects' `agenda' `todos'. + ;; List sizes may be nil, in which case + ;; `spacemacs-buffer-startup-lists-length' takes effect. + dotspacemacs-startup-lists '((recents . 5) + (projects . 7)) + + ;; True if the home buffer should respond to resize events. (default t) + dotspacemacs-startup-buffer-responsive t + + ;; Default major mode of the scratch buffer (default `text-mode') + dotspacemacs-scratch-mode 'text-mode + + ;; Initial message in the scratch buffer, such as "Welcome to Spacemacs!" + ;; (default nil) + dotspacemacs-initial-scratch-message nil + + ;; List of themes, the first of the list is loaded when spacemacs starts. + ;; Press `SPC T n' to cycle to the next theme in the list (works great + ;; with 2 themes variants, one dark and one light) + dotspacemacs-themes '(spacemacs-dark + spacemacs-light) + + ;; Set the theme for the Spaceline. Supported themes are `spacemacs', + ;; `all-the-icons', `custom', `vim-powerline' and `vanilla'. The first three + ;; are spaceline themes. `vanilla' is default Emacs mode-line. `custom' is a + ;; user defined themes, refer to the DOCUMENTATION.org for more info on how + ;; to create your own spaceline theme. Value can be a symbol or list with\ + ;; additional properties. + ;; (default '(spacemacs :separator wave :separator-scale 1.5)) + dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5) + + ;; If non-nil the cursor color matches the state color in GUI Emacs. + ;; (default t) + dotspacemacs-colorize-cursor-according-to-state t + + ;; Default font, or prioritized list of fonts. `powerline-scale' allows to + ;; quickly tweak the mode-line size to make separators look not too crappy. + dotspacemacs-default-font '("terminus" + :size 13 + :weight normal + :width normal) + + ;; The leader key (default "SPC") + dotspacemacs-leader-key "SPC" + + ;; The key used for Emacs commands `M-x' (after pressing on the leader key). + ;; (default "SPC") + dotspacemacs-emacs-command-key "SPC" + + ;; The key used for Vim Ex commands (default ":") + dotspacemacs-ex-command-key ":" + + ;; The leader key accessible in `emacs state' and `insert state' + ;; (default "M-m") + dotspacemacs-emacs-leader-key "M-m" + + ;; Major mode leader key is a shortcut key which is the equivalent of + ;; pressing ` m`. Set it to `nil` to disable it. (default ",") + dotspacemacs-major-mode-leader-key "," + + ;; Major mode leader key accessible in `emacs state' and `insert state'. + ;; (default "C-M-m") + dotspacemacs-major-mode-emacs-leader-key "C-M-m" + + ;; These variables control whether separate commands are bound in the GUI to + ;; the key pairs `C-i', `TAB' and `C-m', `RET'. + ;; Setting it to a non-nil value, allows for separate commands under `C-i' + ;; and TAB or `C-m' and `RET'. + ;; In the terminal, these pairs are generally indistinguishable, so this only + ;; works in the GUI. (default nil) + dotspacemacs-distinguish-gui-tab nil + + ;; If non-nil `Y' is remapped to `y$' in Evil states. (default nil) + dotspacemacs-remap-Y-to-y$ nil + + ;; If non-nil, the shift mappings `<' and `>' retain visual state if used + ;; there. (default t) + dotspacemacs-retain-visual-state-on-shift t + + ;; If non-nil, `J' and `K' move lines up and down when in visual mode. + ;; (default nil) + dotspacemacs-visual-line-move-text nil + + ;; If non-nil, inverse the meaning of `g' in `:substitute' Evil ex-command. + ;; (default nil) + dotspacemacs-ex-substitute-global nil + + ;; Name of the default layout (default "Default") + dotspacemacs-default-layout-name "Default" + + ;; If non-nil the default layout name is displayed in the mode-line. + ;; (default nil) + dotspacemacs-display-default-layout nil + + ;; If non-nil then the last auto saved layouts are resumed automatically upon + ;; start. (default nil) + dotspacemacs-auto-resume-layouts nil + + ;; If non-nil, auto-generate layout name when creating new layouts. Only has + ;; effect when using the "jump to layout by number" commands. (default nil) + dotspacemacs-auto-generate-layout-names nil + + ;; Size (in MB) above which spacemacs will prompt to open the large file + ;; literally to avoid performance issues. Opening a file literally means that + ;; no major mode or minor modes are active. (default is 1) + dotspacemacs-large-file-size 1 + + ;; Location where to auto-save files. Possible values are `original' to + ;; auto-save the file in-place, `cache' to auto-save the file to another + ;; file stored in the cache directory and `nil' to disable auto-saving. + ;; (default 'cache) + dotspacemacs-auto-save-file-location 'cache + + ;; Maximum number of rollback slots to keep in the cache. (default 5) + dotspacemacs-max-rollback-slots 5 + + ;; If non-nil, `helm' will try to minimize the space it uses. (default nil) + dotspacemacs-helm-resize nil + + ;; if non-nil, the helm header is hidden when there is only one source. + ;; (default nil) + dotspacemacs-helm-no-header nil + + ;; define the position to display `helm', options are `bottom', `top', + ;; `left', or `right'. (default 'bottom) + dotspacemacs-helm-position 'bottom + + ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching + ;; in all non-asynchronous sources. If set to `source', preserve individual + ;; source settings. Else, disable fuzzy matching in all sources. + ;; (default 'always) + dotspacemacs-helm-use-fuzzy 'always + + ;; If non-nil, the paste transient-state is enabled. While enabled, pressing + ;; `p' several times cycles through the elements in the `kill-ring'. + ;; (default nil) + dotspacemacs-enable-paste-transient-state nil + + ;; Which-key delay in seconds. The which-key buffer is the popup listing + ;; the commands bound to the current keystroke sequence. (default 0.4) + dotspacemacs-which-key-delay 0.4 + + ;; Which-key frame position. Possible values are `right', `bottom' and + ;; `right-then-bottom'. right-then-bottom tries to display the frame to the + ;; right; if there is insufficient space it displays it at the bottom. + ;; (default 'bottom) + dotspacemacs-which-key-position 'bottom + + ;; Control where `switch-to-buffer' displays the buffer. If nil, + ;; `switch-to-buffer' displays the buffer in the current window even if + ;; another same-purpose window is available. If non-nil, `switch-to-buffer' + ;; displays the buffer in a same-purpose window even if the buffer can be + ;; displayed in the current window. (default nil) + dotspacemacs-switch-to-buffer-prefers-purpose nil + + ;; If non-nil a progress bar is displayed when spacemacs is loading. This + ;; may increase the boot time on some systems and emacs builds, set it to + ;; nil to boost the loading time. (default t) + dotspacemacs-loading-progress-bar t + + ;; If non-nil the frame is fullscreen when Emacs starts up. (default nil) + ;; (Emacs 24.4+ only) + dotspacemacs-fullscreen-at-startup nil + + ;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen. + ;; Use to disable fullscreen animations in OSX. (default nil) + dotspacemacs-fullscreen-use-non-native nil + + ;; If non-nil the frame is maximized when Emacs starts up. + ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. + ;; (default nil) (Emacs 24.4+ only) + dotspacemacs-maximized-at-startup nil + + ;; A value from the range (0..100), in increasing opacity, which describes + ;; the transparency level of a frame when it's active or selected. + ;; Transparency can be toggled through `toggle-transparency'. (default 90) + dotspacemacs-active-transparency 90 + + ;; A value from the range (0..100), in increasing opacity, which describes + ;; the transparency level of a frame when it's inactive or deselected. + ;; Transparency can be toggled through `toggle-transparency'. (default 90) + dotspacemacs-inactive-transparency 90 + + ;; If non-nil show the titles of transient states. (default t) + dotspacemacs-show-transient-state-title t + + ;; If non-nil show the color guide hint for transient state keys. (default t) + dotspacemacs-show-transient-state-color-guide t + + ;; If non-nil unicode symbols are displayed in the mode line. (default t) + dotspacemacs-mode-line-unicode-symbols t + + ;; If non-nil smooth scrolling (native-scrolling) is enabled. Smooth + ;; scrolling overrides the default behavior of Emacs which recenters point + ;; when it reaches the top or bottom of the screen. (default t) + dotspacemacs-smooth-scrolling t + + ;; Control line numbers activation. + ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and + ;; `text-mode' derivatives. If set to `relative', line numbers are relative. + ;; This variable can also be set to a property list for finer control: + ;; '(:relative nil + ;; :disabled-for-modes dired-mode + ;; doc-view-mode + ;; markdown-mode + ;; org-mode + ;; pdf-view-mode + ;; text-mode + ;; :size-limit-kb 1000) + ;; (default nil) + dotspacemacs-line-numbers t + + ;; Code folding method. Possible values are `evil' and `origami'. + ;; (default 'evil) + dotspacemacs-folding-method 'evil + + ;; If non-nil `smartparens-strict-mode' will be enabled in programming modes. + ;; (default nil) + dotspacemacs-smartparens-strict-mode nil + + ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes + ;; over any automatically added closing parenthesis, bracket, quote, etc… + ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) + dotspacemacs-smart-closing-parenthesis nil + + ;; Select a scope to highlight delimiters. Possible values are `any', + ;; `current', `all' or `nil'. Default is `all' (highlight any scope and + ;; emphasis the current one). (default 'all) + dotspacemacs-highlight-delimiters 'all + + ;; If non-nil, start an Emacs server if one is not already running. + dotspacemacs-enable-server t + + ;; If non-nil, advise quit functions to keep server open when quitting. + ;; (default nil) + dotspacemacs-persistent-server t + + ;; List of search tool executable names. Spacemacs uses the first installed + ;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'. + ;; (default '("rg" "ag" "pt" "ack" "grep")) + dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep") + + ;; Format specification for setting the frame title. + ;; %a - the `abbreviated-file-name', or `buffer-name' + ;; %t - `projectile-project-name' + ;; %I - `invocation-name' + ;; %S - `system-name' + ;; %U - contents of $USER + ;; %b - buffer name + ;; %f - visited file name + ;; %F - frame name + ;; %s - process status + ;; %p - percent of buffer above top of window, or Top, Bot or All + ;; %P - percent of buffer above bottom of window, perhaps plus Top, or Bot or All + ;; %m - mode name + ;; %n - Narrow if appropriate + ;; %z - mnemonics of buffer, terminal, and keyboard coding systems + ;; %Z - like %z, but including the end-of-line format + ;; (default "%I@%S") + dotspacemacs-frame-title-format "%I@%S" + + ;; Format specification for setting the icon title format + ;; (default nil - same as frame-title-format) + dotspacemacs-icon-title-format nil + + ;; Delete whitespace while saving buffer. Possible values are `all' + ;; to aggressively delete empty line and long sequences of whitespace, + ;; `trailing' to delete only the whitespace at end of lines, `changed' to + ;; delete only whitespace for changed lines or `nil' to disable cleanup. + ;; (default nil) + dotspacemacs-whitespace-cleanup nil + + ;; Either nil or a number of seconds. If non-nil zone out after the specified + ;; number of seconds. (default nil) + dotspacemacs-zone-out-when-idle nil + + ;; Run `spacemacs/prettify-org-buffer' when + ;; visiting README.org files of Spacemacs. + ;; (default nil) + dotspacemacs-pretty-docs nil)) + +(defun dotspacemacs/user-init () + "Initialization for user code: +This function is called immediately after `dotspacemacs/init', before layer +configuration. +It is mostly for variables that should be set before packages are loaded. +If you are unsure, try setting them in `dotspacemacs/user-config' first." + ) + +(defun dotspacemacs/user-config () + "Configuration for user code: +This function is called at the very end of Spacemacs startup, after layer +configuration. +Put your configuration code here, except for variables that should be set +before packages are loaded." + ) + +;; Do not write anything past this comment. This is where Emacs will +;; auto-generate custom variable definitions. +(defun dotspacemacs/emacs-custom-settings () + "Emacs custom settings. +This is an auto-generated function, do not modify its content directly, use +Emacs customize menu instead. +This function is called at the very end of Spacemacs initialization." +(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 + (yasnippet-snippets restclient-helm org-mime org-brain ob-restclient ob-http link-hint htmlize helm-projectile helm-descbinds evil-nerd-commenter evil-magit editorconfig company-restclient restclient know-your-http-well avy counsel ivy flycheck company helm helm-core magit git-commit ghub with-editor spaceline s dash evil async org-plus-contrib xterm-color ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package unfill undo-tree toc-org symon swiper string-inflection spaceline-all-the-icons smeargle shell-pop restart-emacs rainbow-delimiters powerline popwin persp-mode pcre2el password-generator paradox overseer orgit org-projectile org-present org-pomodoro org-download org-bullets open-junk-file neotree nameless mwim multi-term move-text mmm-mode markdown-toc magit-gitflow macrostep lorem-ipsum linum-relative indent-guide hungry-delete hl-todo highlight-parentheses highlight-numbers highlight-indentation helm-xref helm-themes helm-swoop helm-purpose helm-mode-manager helm-make helm-gitignore helm-flx helm-company helm-c-yasnippet helm-ag goto-chg google-translate golden-ratio gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe git-gutter-fringe+ gh-md fuzzy font-lock+ flyspell-correct-helm flycheck-pos-tip flx-ido fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-org evil-numbers evil-mc evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-cleverparens evil-args evil-anzu eval-sexp-fu eshell-z eshell-prompt-extras esh-help elisp-slime-nav dumb-jump diminish diff-hl define-word counsel-projectile company-statistics column-enforce-mode clean-aindent-mode centered-cursor-mode browse-at-remote auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line ac-ispell)))) +(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. + ) +) diff --git a/emacs/rest_client.org b/emacs/rest_client.org new file mode 100644 index 0000000..89b21d7 --- /dev/null +++ b/emacs/rest_client.org @@ -0,0 +1,74 @@ +* HTTP REST CLIENT +*** #+BEGIN_SRC and #+END_SRC tags need to be present +*** fold/unfold with tab + +** #Example GET Request + #+BEGIN_SRC restclient +GET https://www.google.com +#+END_SRC + #+RESULTS: +#+BEGIN_SRC html +Google



 

Advanced searchLanguage tools

© 2018 - Privacy - Terms

+ + + + + + + + + + + + + + + + + + + + + +#+END_SRC