Closed yefeiyu closed 5 years ago
It changes with cursor's position at input or output area to emacs's background color or definated color. How to make it fixed ?
When I set:
'(ein:cell-input-area ((t (:background "white" :foreground "black"))))
'(ein:cell-output-area ((t (:background "black" :foreground "white"))))
the input area shows normal, but the output-area discoloration with the position of the cursor.
As my test, it is because this two lines in .emacs
:
'(ein:polymode t)
But If I comment out these two sentences, Auto-completion will fail in ein
.
How should I do?
Today, I tried to modify from
(custom-set-variables
'(ein:polymode t)
)
to
(setq ein:polymode t)
The color of output-area correct, But the result of the ipynb
got this error after I input C-c C-c
:
In [ ]:
print('a')
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> python.el: native completion setup loaded
>>> In [ ]:
...: print('a')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/charlesthomas/.pyenv/versions/xenv/lib/python3.7/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "/var/folders/_9/_tq_lwb961n1yv_wwwvsxyg00000gn/T/pyKSrwYH", line 2
In [ ]:
^
SyntaxError: invalid syntax
>>>
1, The
emacs
's background color iswhite
2, Defined theein:cell-input-area
's background color iswhite
too. 3, Defined theein:cell-output-area
's background color isblack
. Now 1 and 2 is OK, but 3 can't consistent. If the cursor at theoutput-area
, theein:cell-output-area
's background color isblack
; when the cursor move toinput-area
, theein:cell-output-area
's background color becomeblack
(this is theemacs
's background color).How to make
ein:cell-output-area
's background color fixed?