From 4cfa8246ea7eec4139ba6c34d3fb3a4545956824 Mon Sep 17 00:00:00 2001 From: benj Date: Sat, 25 Nov 2023 10:02:42 -0800 Subject: rewrite emacs init.el and go back to basics This is a complete rewrite leveraging the very popular use-package to see how I like it. We reduce init.el to a bare minimum configuration and remove the previous homebrew organizational scheme. A number of packages have yet to be setup, but we'll wait and do in JIT. --- templates/snippets/python-mode/import_from | 5 ----- templates/snippets/python-mode/lambda | 5 ----- templates/snippets/python-mode/print | 5 ----- templates/snippets/python-mode/print format | 5 ----- templates/snippets/python-mode/script | 10 ---------- 5 files changed, 30 deletions(-) delete mode 100644 templates/snippets/python-mode/import_from delete mode 100644 templates/snippets/python-mode/lambda delete mode 100644 templates/snippets/python-mode/print delete mode 100644 templates/snippets/python-mode/print format delete mode 100644 templates/snippets/python-mode/script (limited to 'templates/snippets/python-mode') diff --git a/templates/snippets/python-mode/import_from b/templates/snippets/python-mode/import_from deleted file mode 100644 index 767f344..0000000 --- a/templates/snippets/python-mode/import_from +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: import_from -# key: from -# -- -from $1 import $0 diff --git a/templates/snippets/python-mode/lambda b/templates/snippets/python-mode/lambda deleted file mode 100644 index 08b268b..0000000 --- a/templates/snippets/python-mode/lambda +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: lambda -# key: lam -# -- -lambda ${1:x}: $0 \ No newline at end of file diff --git a/templates/snippets/python-mode/print b/templates/snippets/python-mode/print deleted file mode 100644 index 2392fbd..0000000 --- a/templates/snippets/python-mode/print +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: print -# key: print -# -- -print("$0") \ No newline at end of file diff --git a/templates/snippets/python-mode/print format b/templates/snippets/python-mode/print format deleted file mode 100644 index 704cb53..0000000 --- a/templates/snippets/python-mode/print format +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: print format -# key: printf -# -- -print("$1".format($0)) \ No newline at end of file diff --git a/templates/snippets/python-mode/script b/templates/snippets/python-mode/script deleted file mode 100644 index 3113da9..0000000 --- a/templates/snippets/python-mode/script +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: script -# key: script -# -- -#!/usr/bin/env python -def main(): - ${1:pass} - -if __name__ == '__main__': - main() \ No newline at end of file -- cgit v1.2.3