Table of Contents
- Zsh
- Tmux - Terminal multiplexer
- Spacemacs - The best editor is neither Emacs nor Vim, it's Emacs and Vim!
- Gitignore
Use .profile, .zprofile to load required PATHS
Android enviroment variables, some useful paths to use with different os and differents path to configure the others without changes so can be used as a symbolic link.
- Common
DOTPATH
-> where all dot configuration files are (/home/<username>
)HOSTSPATH
-> hosts file location (/etc/hosts
)PATH
-> Add composer bin (/.composer/vendor/bin
)
- Android
ANDROID_HOME
-> Sdk (/home/<username>/Android/Sdk
)PATH
-> add bin, tool and platform tools/usr/local/android-studio/bin
${ANDROID_HOME}/tools
${ANDROID_HOME}/platform-tools
- Spacemacs
YCMDPATH
-> YCMD executable (/home/<username>/ycmd/ycmd
)- Flycheck php laravel oriented
PHPMD
-> Mess detector executable (/home/<username>/.composer/vendor/bin/phpmd
)PHPCS
-> Sintax checker executable (/home/<username>/.composer/vendor/bin/phpcs
)PHPCS_RULESET
-> Sintax checker ruleset (/home/<username>/.composer/vendor/pragmarxlaravelcs/Standards/Laravel/ruleset.xml
)
CTRL-T
- Paste the selected files and directories onto the command lineCTRL-R
- Paste the selected command from history onto the command lineALT-C
- cd into the selected directory
Attach to session without syncyng windows:
The reason both clients switch windows at the same time is because they are both connected to the same session (the “current window” is an attribute of the session, not the client). What you can do is link one or more windows into multiple different sessions. Since each session has its own “current window”, you can then switch windows independently in each session.
The easiest way to use this feature is to use the “grouped sessions” feature of the new-session command:
tmux new-session -t 'original session name or number'
Each session in a group will automatically share the same set of windows: opening/linking (or closing/unlinking) a window in one session of the group automatically causes the same window to be linked (or unlinked) in all the other sessions of the group.
- Start with fullscreen
- Layers
- Auto-completion
- Syntax-cheking
- Ycmd
- Php
- html
- Javascript
- Emacs-lisp
- Vimscript
- Python
- Yaml
- Markdown
Markdown-live-preview-engine 'vmd
- Themes-megapack
- Git
git-magit-status-fullscreen t
- Version-control
version-control-diff-side 'left
version-control-global-margin t
- Helm
- Better-defaults
- Org
- Editing style vim
- Random startup banner
- Font
- Source code pro for powerline
- Cycling themes
- Spacemacs-dark
- Gotham
- Twilight-anti-bright
display-time-24hr-format t
display-time-default-load-average nil
auto-save nil
dotspacemacs-fullscreen-at-startup t
which-key-max-description-length 100
dotspacemacs-whitespace-cleanup `trailing
- dotspacemacs-startup-lists
- Recents . 5
- Projects . 7
- Bookmarks . 2
- Agenda . 2
- Todos . 2
- Quicksave and exit -
SPC q f
- Quicksave with name and exit -
SPC q f
- Load quicksave -
SPC \ l
- Load quicksave with name -
SPC \ L
Changed go to line for a custom function go to line to first non-blank character
Use SPC f e c
to edit spacemacs configuration in vertical split and focus
-
Shortcut
SPC t .
-
Toggles
-
n
Line numbers -
r
Relative line number -
g
Golden ratio -
w
Show whitespace -
h
Evil clear highlight
Winner-mode allows to 'undo' and 'redo' changes in windows configuration.
Source: https://www.emacswiki.org/emacs/WinnerMode
Added .blade.php format to web-mode Custom phpcs statandard for laravel (removed tabs for whitespaces rule)
To use vmd
(Github-favored live preview)
npm install -g vmd
Ex:
/* {block-name} - start */
{content}
/* {block-name} - end */
(spacemacs|define-text-object-regexp "c" "Start-EndBlock" "\\/\\*.*\\s--\\s-start\\s-\\*\\/$" "^\\/\\*.*\\s--\\s-end\\s-\\*\\/$")
Ex:
/* {block-name} */
{content}
/* {next-block-name} */
(spacemacs|define-text-object-regexp "C" "Block" "^\/\*.*\*\/$" "^\/\*.*\*\/$")
Select current line
(spacemacs|define-text-object-regexp "l" "line" "^\\s-*" "\\s-*$")
Select all buffer
(spacemacs|define-text-object-regexp "e" "buffer" "\\`\\s-*" "\\s-*\\'")
(let ((m window-numbering-keymap)) (define-key m "\M-n" 'select-window-n))
(eval-after-load '{active-mode} (define-key evil-{evil-mode}-state-map (kbd "{shortcut}") '{function}))
(define-key evil-{evil-mode}-state-map (kbd "{shortcut}") '{function})
-G{regexp}
It's posible to use regexp to search file route from start of projectile. Can be used anywhere.
- (CONF) YouCompletesMe
- (DOC) Substitute with emacs. Inner file, project of folder
- (DOC) Change '...' -> "..." (SURROUND)
- (DOC) Comment line
- (DOC)(PROJECTILE) global ignore
- (EVILMODE) Create custom text objects
- Variables / constants
- Functions
- Conditions / loops
- (EVILMODE) Movement using fuzzysearch like easymotion vim package
- (EVILMODE) Emet and snippets
- (EVILMODE) Multicusor
- (EVILMODE) Delete lines without spaces
- (FLYCHECK) Implement easy syntax rules asking for confirmation
- (FLYCHECK) Custom syntax checks
- (LANG)(REACTNATIVE) snippets
- (LANG)(REACTNATIVE) Html/jsx tag creation edition
- (SEARCH) Modify searched files
- (SEARCH) Fuzzy single line
- (HIGHLIGHT) Notify double blank line
- (Text object)(Start-EndBlock) Accept this block in emacs-elisp-mode
- (Text object)(Scss/css Comment block) Stop line above last comment
To set a global gitgnore
git config --global core.excludesfile ~/.gitignore