diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 89df007..abe6f7e 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -42,7 +42,7 @@ '(global-hl-line-mode t) '(package-selected-packages (quote - (projectile webfeeder znc pinboard yaml-mode which-key web-mode virtualenvwrapper use-package twittering-mode try smex racer powershell poetry pipenv ox-reveal outline-magic org-pdfview org-bullets ob-restclient multiple-cursors magit lua-mode lsp-ui iedit helm flycheck-rust exec-path-from-shell eglot edit-indirect company-lsp ansible ace-window)))) + (phps-mode projectile webfeeder znc pinboard yaml-mode which-key web-mode virtualenvwrapper use-package twittering-mode try smex racer powershell poetry pipenv ox-reveal outline-magic org-pdfview org-bullets ob-restclient multiple-cursors magit lua-mode lsp-ui iedit helm flycheck-rust exec-path-from-shell eglot edit-indirect company-lsp ansible ace-window)))) '(znc-servers `(("bouncer.awful.club" 5000 t ((freenode "blindidiotgod/freenode" ,znc-password) diff --git a/.emacs.d/jlj-org.el_20200620_185920_rEadML.png b/.emacs.d/jlj-org.el_20200620_185920_rEadML.png new file mode 100644 index 0000000..3af474d Binary files /dev/null and b/.emacs.d/jlj-org.el_20200620_185920_rEadML.png differ diff --git a/.emacs.d/snippets/python-mode/new-python-project b/.emacs.d/snippets/python-mode/new-python-project new file mode 100644 index 0000000..6fdf2d7 --- /dev/null +++ b/.emacs.d/snippets/python-mode/new-python-project @@ -0,0 +1,35 @@ +# -*- mode: snippet -*- +# name: new python project +# key: npp +# -- +import argparse +import sys + + +def idb_excepthook(type, value, tb): + """Call an interactive debugger in post-mortem mode + If you do "sys.excepthook = idb_excepthook", then an interactive debugger + will be spawned at an unhandled exception + """ + if hasattr(sys, 'ps1') or not sys.stderr.isatty(): + sys.__excepthook__(type, value, tb) + else: + import pdb, traceback + traceback.print_exception(type, value, tb) + print + pdb.pm() + + +def main(*args, **kwargs): + parser = argparse.ArgumentParser( + description="") + parser.add_argument( + "--debug", "-d", action='store_true', help="Include debugging output") + + parsed = parser.parse_args() + if parsed.debug: + sys.excepthook = idb_excepthook + + +if __name__ == "__main__": + sys.exit(main(*sys.argv)) diff --git a/.gitignore b/.gitignore index bf94ecf..82009d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ * .weechat/logs/ +.emacs.d/emojis/ diff --git a/.zshrc b/.zshrc index 45e80a5..37d7598 100644 --- a/.zshrc +++ b/.zshrc @@ -21,7 +21,7 @@ alias l1='ls -1' alias llm='lsl -r -t' # lsl+ sort by modified time (lastest at bottom) # emacs aliases lol -alias social="emacs -q -l '~/.emacs.d/init-social.el'" +alias social="/Applications/Emacs.app/Contents/MacOS/Emacs -q -l '~/.emacs.d/init-social.el'" # blatantly steal micah's colorized man pages # See: http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized @@ -71,3 +71,4 @@ echo -e "\e[31m || BURIED\e[0m |" echo -e "\e[31m || HATCHET\e[0m | $OSTYPE" echo -e "\e[31m ||\e[0m |" echo "" +