Skip to content

Instantly share code, notes, and snippets.

View mahyaret's full-sized avatar

Mahyar Abdeetedal mahyaret

View GitHub Profile
@mahyaret
mahyaret / .tmux.conf
Last active March 27, 2020 01:31
tmux
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# to sync command in all the panes
bind -n C-x setw synchronize-panes
# scroll in tmux pane using hjkl
setw -g mode-keys vi
@mahyaret
mahyaret / .vimrc
Last active July 4, 2020 12:20
Vim
set hidden
set timeout ttimeoutlen=50
" folding thte code
set foldmethod=indent
set nofoldenable
" za: Toggle code folding.
" zR: Open all folds.
" zM: Close all folds.
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
(when no-ssl
(warn "\
Your version of Emacs does not support SSL connections,
which is unsafe because it allows man-in-the-middle attacks.
There are two things you can do about this warning:
1. Install an Emacs version that does support SSL and be safe.
@mahyaret
mahyaret / .emacs-linux
Created December 21, 2019 23:00
What I use in Debian
(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 (slime undo-tree elpy dracula-theme ##))))
(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.
@mahyaret
mahyaret / elpy_cheat_sheet
Created July 29, 2019 13:31
ELPY Cheat Sheet
| Key Binding | Function |
|---------------------------|------------------------------------------------------------------------------|
| C-down | Forward one indentation block |
| C-up | Backward one indentation block |
| C-left | Backward one indentation level |
| C-right | Forward one indentation level |
| M-down | Move line or region down |
| M-up | Move line or region up |
| M-left | Move line or indentation block left |
| M-right | Move line or
@mahyaret
mahyaret / .emacs-windows
Last active June 12, 2019 19:02
C:\Users\abdeetm\AppData\Roaming\.emacs
(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
(elpy exec-path-from-shell dracula-theme csharp-mode slime ##))))
(custom-set-faces
;; custom-set-faces was added by Custom.