Giter Club home page Giter Club logo

office-config's Introduction

Table of Contents

Zsh

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)

FZF - Fuzzy finder directories, files and history

Github - fzf

  • CTRL-T - Paste the selected files and directories onto the command line
  • CTRL-R - Paste the selected command from history onto the command line
  • ALT-C - cd into the selected directory

Tmux - Terminal multiplexer

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.

Spacemacs - The best editor is neither Emacs nor Vim, it's Emacs and Vim!

Configuration

  • 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

User configuration

  • 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

Shorcuts

Quicksave perspective

  • Quicksave and exit - SPC q f
  • Quicksave with name and exit - SPC q f
  • Load quicksave - SPC \ l
  • Load quicksave with name - SPC \ L

Avy

Changed go to line for a custom function go to line to first non-blank character

Edit spacemacs configuration

Use SPC f e c to edit spacemacs configuration in vertical split and focus

Kill buffer and window - SPC w b

Open projetile on new frame - SPC p P

Transient states

Toggle manipulation

  • Shortcut SPC t .

  • Toggles

  • n Line numbers

  • r Relative line number

  • g Golden ratio

  • w Show whitespace

  • h Evil clear highlight

Windows

Winner mode

Winner-mode allows to 'undo' and 'redo' changes in windows configuration.

Source: https://www.emacswiki.org/emacs/WinnerMode

Languages

PHP

Added .blade.php format to web-mode Custom phpcs statandard for laravel (removed tabs for whitespaces rule)

Markdown

To use vmd (Github-favored live preview)

npm install -g vmd

Text object

Start-end comment block 'c'

Ex:

/* {block-name} - start */

{content}

/* {block-name} - end */
  (spacemacs|define-text-object-regexp "c" "Start-EndBlock" "\\/\\*.*\\s--\\s-start\\s-\\*\\/$" "^\\/\\*.*\\s--\\s-end\\s-\\*\\/$")

Comment block 'C'

Ex:

/* {block-name} */

{content}

/* {next-block-name} */
  (spacemacs|define-text-object-regexp "C" "Block" "^\/\*.*\*\/$" "^\/\*.*\*\/$")

Line 'l'

Select current line

  (spacemacs|define-text-object-regexp "l" "line" "^\\s-*" "\\s-*$")

All buffer 'e'

Select all buffer

  (spacemacs|define-text-object-regexp "e" "buffer" "\\`\\s-*" "\\s-*\\'")

Useful documentation

Change meta+number shortcut. Currently used by window-numbering

  (let ((m window-numbering-keymap)) (define-key m "\M-n" 'select-window-n))

Define global key only when mode is active

  (eval-after-load '{active-mode} (define-key evil-{evil-mode}-state-map (kbd "{shortcut}") '{function}))

Define evil key

  (define-key evil-{evil-mode}-state-map (kbd "{shortcut}") '{function})

Functions

Search with ag

  • -G{regexp} It's posible to use regexp to search file route from start of projectile. Can be used anywhere.

Todo

  • (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

Gitignore

To set a global gitgnore

git config --global core.excludesfile ~/.gitignore

office-config's People

Contributors

jaume991 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.