From f2018687278f84be1a2f3a2f64b6e47c1079cbf8 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 15 Jun 2023 11:29:02 -0400 Subject: [PATCH] calcpy: improvements - escape actually works in vi-mode - added dg() alias for degrees() --- src/.config/ipython/profile_calcpy/ipython_config.py | 1 + src/.config/ipython/profile_calcpy/startup/startup.ipy | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/.config/ipython/profile_calcpy/ipython_config.py b/src/.config/ipython/profile_calcpy/ipython_config.py index c9fbc24..5f51ff3 100644 --- a/src/.config/ipython/profile_calcpy/ipython_config.py +++ b/src/.config/ipython/profile_calcpy/ipython_config.py @@ -2,3 +2,4 @@ c = get_config() c.TerminalInteractiveShell.editing_mode = "vi" c.TerminalInteractiveShell.show_rewritten_input = False +c.TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode = False diff --git a/src/.config/ipython/profile_calcpy/startup/startup.ipy b/src/.config/ipython/profile_calcpy/startup/startup.ipy index 795bf6a..f23bdf1 100644 --- a/src/.config/ipython/profile_calcpy/startup/startup.ipy +++ b/src/.config/ipython/profile_calcpy/startup/startup.ipy @@ -1,4 +1,6 @@ # vim: ft=python +from math import degrees as dg + # don't need parentheses on some function calls %autocall 2