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
| ;; Bijan Sondossi | |
| ;; file: ~/.emacs | |
| ;; description: emacs config file | |
| ;;; defaults | |
| (menu-bar-mode -1) ;) | |
| (set-default 'truncate-lines t) ;D | |
| (put 'upcase-region 'disabled nil) ; enable upcase region (default disabled) | |
| (put 'downcase-region 'disabled nil) |
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
| import signal | |
| # could be cool to have a configurable prompt | |
| def _pdb_sigint(signum, frame): | |
| breakpoint() | |
| signal.signal(signal.SIGINT, _pdb_sigint) | |
| # use with `import pdb_sigint` |