From 37505a6e3ce74048b798697ea59d298ed77eb199 Mon Sep 17 00:00:00 2001 From: John Doty Date: Fri, 11 Dec 2015 11:00:19 -0800 Subject: [PATCH 01/15] Readme file and small tweak --- readme.md | 7 +++++++ setup.ps1 | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..578ea6d --- /dev/null +++ b/readme.md @@ -0,0 +1,7 @@ +# Doty's init files + +This is a git repo for your dotfiles. You know, like you do. + +On Windows, clone this into your home directory (so that it lives in +~/Init-Files) and run setup.cmd to get everything linked into the right +place. \ No newline at end of file diff --git a/setup.ps1 b/setup.ps1 index 620e38f..fad6668 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -6,11 +6,11 @@ function new-link($link, $target) { } } -$ignore = @(".gitignore", "setup.ps1") +$ignore = @(".gitignore", "setup.ps1", "setup.cmd") Get-ChildItem . | ? { !$ignore.Contains($_.Name) } | - % { + % { $l = split-path -leaf $_.FullName $p = split-path -parent (split-path -parent $_.FullName) $t = join-path $p $l @@ -18,6 +18,6 @@ Get-ChildItem . | if (test-path $t) { remove-item -recurse -force $t } - + new-link $t $($_.FullName) } From d4cd3cc94231ab342939c860d2ed2ad583fea4fb Mon Sep 17 00:00:00 2001 From: John Doty Date: Thu, 7 Jan 2016 07:05:44 -0800 Subject: [PATCH 02/15] No more SD --- .emacs.d/core.el | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index aec873b..39c2876 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -575,15 +575,6 @@ (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) (add-to-list 'interpreter-mode-alist '("lua" . lua-mode)) -;; ================================================================= -;; Source Depot -;; ================================================================= -(load-library "sd") -(setq sd-use-sdconfig-exclusively t) -(sd-set-sd-executable "c:/tools/x86/sd.exe") -(setq sd-global-config "sd.ini") -(setenv "SDCONFIG" "sd.ini") - ;; ================================================================= ;; Code Folding ;; ================================================================= From bb39d27d8e79c6affb32e85aa3c92543138a83d6 Mon Sep 17 00:00:00 2001 From: John Doty Date: Thu, 28 Jan 2016 20:43:58 -0800 Subject: [PATCH 03/15] Random things... --- .bashrc | 2 + .config/NuGet/NuGet.Config | 6 + .config/fish/config.fish | 17 +- .config/fish/functions/dnu.fish | 8 + .config/fish/functions/dnvm.fish | 8 + .config/fish/functions/dnx.fish | 8 + .../objects | 1869 +++++++++++++++++ .config/stetic/library-cache/index.xml | 43 + .config/xbuild/pkgconfig-cache-2.xml | 116 + 9 files changed, 2075 insertions(+), 2 deletions(-) create mode 100644 .config/NuGet/NuGet.Config create mode 100644 .config/fish/functions/dnu.fish create mode 100644 .config/fish/functions/dnvm.fish create mode 100644 .config/fish/functions/dnx.fish create mode 100644 .config/stetic/library-cache/4201152a-3448-4296-ba3b-c67344a4f00f/objects create mode 100644 .config/stetic/library-cache/index.xml create mode 100644 .config/xbuild/pkgconfig-cache-2.xml diff --git a/.bashrc b/.bashrc index a5f83b7..7cac8e2 100644 --- a/.bashrc +++ b/.bashrc @@ -112,3 +112,5 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +[ -s "/Users/doty/.dnx/dnvm/dnvm.sh" ] && . "/Users/doty/.dnx/dnvm/dnvm.sh" # Load dnvm diff --git a/.config/NuGet/NuGet.Config b/.config/NuGet/NuGet.Config new file mode 100644 index 0000000..d0d4c10 --- /dev/null +++ b/.config/NuGet/NuGet.Config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.config/fish/config.fish b/.config/fish/config.fish index d6e25cb..ae2c2f6 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,3 +1,16 @@ if status --is-login - set PATH $PATH ~/bin -end \ No newline at end of file + set PATH $PATH ~/bin ~/devtools/buck/bin +end + +export EDITOR=ec +export VISUAL=ec + +export FBANDROID_DIR=/Users/doty/fbsource/fbandroid +alias quicklog_update=/Users/doty/fbsource/fbandroid/scripts/quicklog/quicklog_update.sh +alias qlu=quicklog_update + +# added by setup_fb4a.sh +export ANDROID_SDK=/opt/android_sdk +export ANDROID_NDK_REPOSITORY=/opt/android_ndk +export ANDROID_HOME={ANDROID_SDK} +export PATH={PATH}:{ANDROID_SDK}/tools:{ANDROID_SDK}/platform-tools diff --git a/.config/fish/functions/dnu.fish b/.config/fish/functions/dnu.fish new file mode 100644 index 0000000..d75cc3d --- /dev/null +++ b/.config/fish/functions/dnu.fish @@ -0,0 +1,8 @@ +function dnu --description "wraps the dnu bash script" + if test -e ~/.dnx/dnvm/dnvm.sh + set dnx ~/.dnx/dnvm/dnvm.sh + else if test -e /usr/local/bin/dnvm.sh + set dnx /usr/local/bin/dnvm.sh + end + bash -c ". $dnx && dnu $argv" +end diff --git a/.config/fish/functions/dnvm.fish b/.config/fish/functions/dnvm.fish new file mode 100644 index 0000000..04dd8c5 --- /dev/null +++ b/.config/fish/functions/dnvm.fish @@ -0,0 +1,8 @@ +function dnvm --description "wraps the dnvm.sh bash script" +if test -e ~/.dnx/dnvm/dnvm.sh + set dnx ~/.dnx/dnvm/dnvm.sh +else if test -e /usr/local/bin/dnvm.sh + set dnx /usr/local/bin/dnvm.sh +end + bash -c ". $dnx && dnvm $argv" +end diff --git a/.config/fish/functions/dnx.fish b/.config/fish/functions/dnx.fish new file mode 100644 index 0000000..562e497 --- /dev/null +++ b/.config/fish/functions/dnx.fish @@ -0,0 +1,8 @@ +function dnx --description "wraps the dnx bash script" +if test -e ~/.dnx/dnvm/dnvm.sh + set dnx ~/.dnx/dnvm/dnvm.sh +else if test -e /usr/local/bin/dnvm.sh + set dnx /usr/local/bin/dnvm.sh +end + bash -c ". $dnx && dnx $argv" +end diff --git a/.config/stetic/library-cache/4201152a-3448-4296-ba3b-c67344a4f00f/objects b/.config/stetic/library-cache/4201152a-3448-4296-ba3b-c67344a4f00f/objects new file mode 100644 index 0000000..473bc76 --- /dev/null +++ b/.config/stetic/library-cache/4201152a-3448-4296-ba3b-c67344a4f00f/objects @@ -0,0 +1,1869 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | + + + + + + + + + + + + + + + + + + + + + + | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | + + + + + + GTK_ + + + + + + + + + + + + + + + + + + + | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.config/stetic/library-cache/index.xml b/.config/stetic/library-cache/index.xml new file mode 100644 index 0000000..1de8351 --- /dev/null +++ b/.config/stetic/library-cache/index.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.config/xbuild/pkgconfig-cache-2.xml b/.config/xbuild/pkgconfig-cache-2.xml new file mode 100644 index 0000000..e9b77f8 --- /dev/null +++ b/.config/xbuild/pkgconfig-cache-2.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 8cb448054bd47ecb2295c7234a9c448f2c08af11 Mon Sep 17 00:00:00 2001 From: John Doty Date: Thu, 28 Jan 2016 20:44:17 -0800 Subject: [PATCH 04/15] A line for .net core in zsh --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index 8da87a4..6711b4a 100644 --- a/.zshrc +++ b/.zshrc @@ -35,3 +35,5 @@ alias l='ls -CF' if [ -f ~/.zsh_aliases ]; then . ~/.zsh_aliases fi + +[ -s "/Users/doty/.dnx/dnvm/dnvm.sh" ] && . "/Users/doty/.dnx/dnvm/dnvm.sh" # Load dnvm From 8c0e90ade4c927fd0e4db09aa9db44a7d7cc4e3a Mon Sep 17 00:00:00 2001 From: John Doty Date: Thu, 28 Jan 2016 20:45:03 -0800 Subject: [PATCH 05/15] Emacs tweaks for FB --- .emacs.d/core.el | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index 39c2876..ff56bda 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -344,8 +344,27 @@ (statement-case-open . +) )))) +(c-add-style "fb-c" + '("gnu" + (c-basic-offset . 2) + (c-offsets-alist . ((c . c-lineup-C-comments) + (inclass . +) + (access-label . -) + (defun-block-intro . +) + (substatement-open . 0) + (statement-block-intro . +) + (innamespace . +) + (statement-case-intro . +) + (statement-case-open . 0) + (brace-list-intro . +) + (substatement . +) + (arglist-intro . +) + (arglist-close . 0) + (statement-case-open . +) + )))) + (defun my-c-mode-hook () - (c-set-style "ms-c")) + (c-set-style "fb-c")) (add-hook 'c-mode-hook 'my-c-mode-hook) (add-hook 'c++-mode-hook 'my-c-mode-hook) @@ -641,12 +660,13 @@ (add-to-list 'auto-coding-alist '("\\.appx\\'" . no-conversion)) ;; ================================================================= -;; Some build stuff; I swiped this from handmade-hero +;; Some build stuff; I swiped this from handmade-hero. Good for +;; unibuild setups. ;; ================================================================= (when (featurep 'w32) (setq doty-makescript "build.bat")) -(when (featurep 'aquamacs) +(when (featurep 'cocoa) (setq doty-makescript "./build.macosx")) (when (featurep 'x) @@ -705,3 +725,6 @@ (vn (car spev)) (vv (cadr spev))) (setenv vn vv)))) + +;; Dirty hack but it makes tramp run faster +(setq vc-handled-backends nil) From b3e01cdee9f21e984f526920351259ee58b7019f Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:42:38 -0700 Subject: [PATCH 06/15] Remove file that should not be there. --- .config/xbuild/pkgconfig-cache-2.xml | 116 --------------------------- 1 file changed, 116 deletions(-) delete mode 100644 .config/xbuild/pkgconfig-cache-2.xml diff --git a/.config/xbuild/pkgconfig-cache-2.xml b/.config/xbuild/pkgconfig-cache-2.xml deleted file mode 100644 index e9b77f8..0000000 --- a/.config/xbuild/pkgconfig-cache-2.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 5f4707a16dcc1bace405d50b8194cefbe864eade Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:42:52 -0700 Subject: [PATCH 07/15] Ignore some configuration --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 6b55be0..f3b9712 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .config/fish/fish_history .config/fish/fishd* .config/fish/generated_completions +.config/xbuild/pkgconfig-cache-2.xml +.config/.isolated-storage _viminfo .emacs.d/url/cookies .emacs.d/ido.last From eb8d641a3291ae38b24e3fbd47fb79f5343a126d Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:43:02 -0700 Subject: [PATCH 08/15] Anaconda setup --- .profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.profile b/.profile index c9db459..b4372c5 100644 --- a/.profile +++ b/.profile @@ -20,3 +20,6 @@ fi if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi + +# added by Anaconda3 2.4.1 installer +export PATH="/Users/doty/anaconda/bin:$PATH" From 12b6bdf04fbfc033ae85a44d04a3c1387d0ae7d0 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:43:16 -0700 Subject: [PATCH 09/15] Bower --- .config/configstore/bower-github.yml | 1 + .config/configstore/update-notifier-bower.json | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .config/configstore/bower-github.yml create mode 100644 .config/configstore/update-notifier-bower.json diff --git a/.config/configstore/bower-github.yml b/.config/configstore/bower-github.yml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.config/configstore/bower-github.yml @@ -0,0 +1 @@ +{} diff --git a/.config/configstore/update-notifier-bower.json b/.config/configstore/update-notifier-bower.json new file mode 100644 index 0000000..9947597 --- /dev/null +++ b/.config/configstore/update-notifier-bower.json @@ -0,0 +1,4 @@ +{ + "optOut": false, + "lastUpdateCheck": 1458929677651 +} \ No newline at end of file From a230cc6e48db8affaa0c463021e625b5e7edeae4 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:44:41 -0700 Subject: [PATCH 10/15] Fix aspell on mac --- .emacs.d/core.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index ff56bda..26cbf48 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -243,6 +243,11 @@ ;; Cleanup all the whitespaces. (add-hook 'before-save-hook 'whitespace-cleanup) +;; On MacOS we need to specify the path to aspell explicitly because PATH is +;; a broken pile of garbage. +(if (file-executable-p "/usr/local/bin/aspell") + (setq ispell-program-name "/usr/local/bin/aspell")) + ;; ================================================================= ;; Text mode configuration. ;; ================================================================= From ee7f99fd71b9dc23c1723ebdc6104f37ad4dee4e Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:45:02 -0700 Subject: [PATCH 11/15] Fix solarized reference --- .emacs.d/core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index 26cbf48..d142df4 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -193,7 +193,7 @@ (progn (require 'color-theme) (require 'color-theme-solarized) - (color-theme-solarized-light))) + (color-theme-solarized))) ;; Modeline format: (display-time-mode -1) From a16be3025b8b559be74f7cd4846d9f4a4a0b193d Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:45:39 -0700 Subject: [PATCH 12/15] Stop disabling vc-backends --- .emacs.d/core.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index d142df4..28b27f1 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -731,5 +731,7 @@ (vv (cadr spev))) (setenv vn vv)))) -;; Dirty hack but it makes tramp run faster -(setq vc-handled-backends nil) +;; Dirty hack but it makes tramp run faster. This is for when you're experimenting with +;; using emacs locally but editing files on your FB devserver. Honestly I think you're +;; better off just using Nuclide and leaving emacs for other stuff. +;; (setq vc-handled-backends nil) From 6c0d10afa4fc8bfe8e53d327aa7fbcf445eef8be Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 11:26:42 -0700 Subject: [PATCH 13/15] New favorite font --- .emacs.d/core.el | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index 28b27f1..0e88496 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -151,14 +151,18 @@ ;; Consolas. (And, to a lesser extent, Inconsolata.) ;; (require 'cl) -(defun font-existsp (font) - (if (and (fboundp 'x-list-fonts) (null (x-list-fonts font))) - nil t)) +(defun font-candidate (&rest fonts) + "Return existing font which first match." + (find-if (lambda (f) (find-font (font-spec :name f))) fonts)) (setq my-font-choice - (find-if - 'font-existsp - '("Consolas-11" "Inconsolata-11"))) + (font-candidate + "Input Mono-12:weight=light" + "Consolas-10" + "Inconsolata-11")) + +;; This is just here for playing with things. +;; (set-frame-font my-font-choice) ;; ;; To obtain new font string, execute eval-expression, and eval this: @@ -184,9 +188,6 @@ (width . 91) (height . ,jd-frame-height))) -;; This is just here for playing with things. -;; (set-frame-font my-font-choice) - ;; COLORZ! ;; (if (display-graphic-p) From 2670bbb857bf988b320c972f641bb692fc7cf1d9 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 13:49:25 -0700 Subject: [PATCH 14/15] Better path fix on macos --- .emacs.d/core.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index 0e88496..6fa1741 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -87,6 +87,8 @@ 'flymake ; Compiling 'flycheck ; Checking + 'exec-path-from-shell ; Fix path on MacOS + 'go-autocomplete ; Autocomplete for golang 'popup ; Pretty completions? @@ -244,10 +246,9 @@ ;; Cleanup all the whitespaces. (add-hook 'before-save-hook 'whitespace-cleanup) -;; On MacOS we need to specify the path to aspell explicitly because PATH is -;; a broken pile of garbage. -(if (file-executable-p "/usr/local/bin/aspell") - (setq ispell-program-name "/usr/local/bin/aspell")) +;; Fix path loading on MacOS X +(when (memq window-system '(mac ns)) + (exec-path-from-shell-initialize)) ;; ================================================================= ;; Text mode configuration. From 42d4cf44a43c9d09da6e7fc34d459cc8817fc723 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 14:05:06 -0700 Subject: [PATCH 15/15] Flycheck for python is rad --- .emacs.d/core.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index 6fa1741..d61cad2 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -569,6 +569,12 @@ (setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist)) +(defun my-python-hook () + (flycheck-mode) + ) + +(add-hook 'python-mode-hook 'my-python-hook) + ;; ================================================================= ;; JavaScript Support ;; =================================================================