This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Python Development Environment | |
;; elpy or anaconda-mode | |
;; | |
;; ;; https://github.com/jorgenschaefer/elpy | |
;; ;; https://realpython.com/emacs-the-best-python-editor/ | |
;; ;; usage of elpy: https://elpy.readthedocs.io/en/latest/ide.html | |
;; (elpy-enable) | |
;; ;; use flycheck instead of default flymake used by elpy | |
;; (setq elpy-modules (delq 'elpy-module-flymake elpy-modules)) | |
;; ;; (require 'py-autopep8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wc | |
if test (count $argv) -gt 1 | |
command wc $argv | sort -n | |
else | |
command wc $argv | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun toggle-maximize-window (arg) | |
"Maximize window, called with C-u, maximize the other window." | |
(interactive "P") | |
(if (= 1 (length (window-list))) | |
(if (not (get-register '_)) | |
(message "No window configuration existed!") | |
(jump-to-register '_)) | |
(progn | |
(window-configuration-to-register '_) | |
(if current-prefix-arg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set mouse=a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
change | |
(bind-key "." 'semantic-complete-self-insert prog-mode-map) | |
(it will cause problems in python-mode) | |
to | |
(bind-key "." 'semantic-complete-self-insert c-mode-map) | |
(bind-key "." 'semantic-complete-self-insert c++-mode-map) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(bind-keys* | |
("C-c a a" . align) | |
("C-c a r" . align-regexp)) | |
(dolist (m (list c-mode-map c++-mode-map)) | |
(bind-keys :map m | |
:prefix-map align-prefix-map | |
:prefix "C-c a" | |
;; ("a" . align) | |
;; ("r" . align-regexp) | |
("c" . align-c-comments) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#vim | |
alias v 'vim' | |
alias V 'vim -u NONE' | |
alias vc 'vim ~/.cgdb/cgdbrc' | |
alias vimv 'vim ~/.vim/vimrc' | |
alias vimb 'vim ~/.bashrc' | |
alias vime 'vim ~/.emacs.d/init.el' | |
alias vim2 'vim ~/Recentchange/TODO' | |
alias vimf 'vim ~/.config/fish/config.fish; source ~/.config/fish/config.fish; echo config.fish reloaded!' | |
alias vimt 'vim ~/.tmux.conf; tmux source-file ~/.tmux.conf; echo ~/.tmux.conf reloaded!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(when (not (package-installed-p 'auctex)) | |
(package-install 'auctex)) | |
chmod +x ~/.emacs.d/snippets/* | |
since if it got no x permission, it cannot be expaned by yasnippet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conda install -c conda-forge ncurses emacs w3m fish the_silver_searcher source-highlight | |
conda install -c ripl-org tmux | |
conda install -c freckles stow | |
pip install ranger-fm | |
to know what channel(conda-forge) provides the latest version of a package: | |
conda install -c binstar binstar # renamed to anaconda-client, so `conda install anaconda-client` | |
binstar search -t conda packgename # get the channel(user) name | |
conda install -c channel packagename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add "--time=ctime" in lst/lsh/lsh2/llh/lah/lat/llt |