Skip to content

Instantly share code, notes, and snippets.

@bijn
bijn / pdb_sigint.py
Created May 19, 2024 20:00
Starts PDB when SIGINT is sent.
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`
;; 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)