Commit | Line | Data |
---|---|---|
27be52b3 MW |
1 | ### -*-python -*- |
2 | ||
60abf0c5 | 3 | import pygments as PYG |
27be52b3 MW |
4 | c = get_config() |
5 | ||
60abf0c5 | 6 | ## Simple stuff. |
27be52b3 MW |
7 | c.InteractiveShell.autocall = 0 |
8 | c.InteractiveShell.autoindent = True | |
9 | c.InteractiveShell.automagic = False | |
10 | ||
11 | c.InteractiveShell.color_info = True | |
12 | c.InteractiveShell.colors = 'Linux' | |
13 | ||
27be52b3 | 14 | c.TerminalIPythonApp.display_banner = False |
27be52b3 | 15 | c.TerminalInteractiveShell.confirm_exit = False |
d4d07085 | 16 | c.TerminalInteractiveShell.display_completions = 'readlinelike' |
60abf0c5 MW |
17 | |
18 | ## Syntax colouring. | |
19 | T = PYG.token | |
20 | c.TerminalInteractiveShell.highlighting_style = 'emacs' | |
21 | c.TerminalInteractiveShell.highlighting_style_overrides = { | |
22 | T.Keyword: 'bold #fff', | |
23 | T.Comment: 'italic #54ff9f', | |
24 | T.Literal.Number: '#adff2f', | |
25 | T.Literal.String: '#87ceff', | |
26 | T.Literal.String.Escape: '#87ceff', | |
27 | T.Literal.String.Interpol: '#87ceff', | |
28 | T.Name: '#fff', | |
29 | T.Name.Builtin: '#fff', | |
30 | T.Name.Class: '#fff', | |
31 | T.Name.Constant: 'italic #fff', | |
32 | T.Name.Decorator: '#fff', | |
54d949fb | 33 | T.Name.Exception: '#fff', |
60abf0c5 MW |
34 | T.Name.Function: '#fff', |
35 | T.Name.Function.Magic: '#fff', | |
36 | T.Name.Label: '#fff', | |
37 | T.Name.Namespace: '#fff', | |
38 | T.Name.Variable: '#fff', | |
39 | T.Name.Variable.Class: '#fff', | |
40 | T.Name.Variable.Global: '#fff', | |
41 | T.Name.Variable.Instance: '#fff', | |
42 | T.Name.Variable.Magic: '#fff', | |
43 | T.Operator: '#eec591', | |
44 | T.Operator.Word: 'bold #fff', | |
45 | T.Punctuation: '#eec591' | |
46 | } |