chiark / gitweb /
el/dot-emacs.el: Tweak face settings for 256-colour terminals.
[profile] / dot / ipython-config.py
1 ### -*-python -*-
2
3 import pygments as PYG
4 c = get_config()
5
6 ## Simple stuff.
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
14 c.TerminalIPythonApp.display_banner = False
15 c.TerminalInteractiveShell.confirm_exit = False
16 c.TerminalInteractiveShell.display_completions = 'readlinelike'
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: '#ffff00',
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',
33   T.Name.Exception: '#fff',
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 }