dot/ipython-config.py: Fix the disastrous matching-paren highlight.
[profile] / dot / ipython-config.py
1 ### -*-python -*-
2
3 import pygments as PYG
4 import prompt_toolkit as PTK
5
6 c = get_config()
7
8 ## Simple stuff.
9 c.InteractiveShell.autocall = 0
10 c.InteractiveShell.autoindent = True
11 c.InteractiveShell.automagic = False
12
13 c.InteractiveShell.color_info = True
14 c.InteractiveShell.colors = 'Linux'
15
16 c.TerminalIPythonApp.display_banner = False
17 c.TerminalInteractiveShell.confirm_exit = False
18 c.TerminalInteractiveShell.display_completions = 'readlinelike'
19
20 ## Syntax colouring.
21 T = PYG.token
22 c.TerminalInteractiveShell.highlighting_style = 'emacs'
23 c.TerminalInteractiveShell.highlighting_style_overrides = {
24 T.Keyword: 'bold #fff',
25 T.Comment: 'italic #54ff9f',
26 T.Literal.Number: '#ffff00',
27 T.Literal.String: '#87ceff',
28 T.Literal.String.Escape: '#87ceff',
29 T.Literal.String.Interpol: '#87ceff',
30 T.Name: '#fff',
31 T.Name.Builtin: '#fff',
32 T.Name.Class: '#fff',
33 T.Name.Constant: 'italic #fff',
34 T.Name.Decorator: '#fff',
35 T.Name.Exception: '#fff',
36 T.Name.Function: '#fff',
37 T.Name.Function.Magic: '#fff',
38 T.Name.Label: '#fff',
39 T.Name.Namespace: '#fff',
40 T.Name.Variable: '#fff',
41 T.Name.Variable.Class: '#fff',
42 T.Name.Variable.Global: '#fff',
43 T.Name.Variable.Instance: '#fff',
44 T.Name.Variable.Magic: '#fff',
45 T.Operator: '#eec591',
46 T.Operator.Word: 'bold #fff',
47 T.Punctuation: '#eec591',
48 PTK.token.Token.MatchingBracket: '',
49 PTK.token.Token.MatchingBracket.Cursor: '',
50 PTK.token.Token.MatchingBracket.Other: 'bg:#006400'
51 }