Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
5b6ec593
Commit
5b6ec593
authored
Jun 29, 2013
by
Ivan Andrus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added outline-regexp
parent
aafed7a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Tools/cython-mode.el
Tools/cython-mode.el
+6
-2
No files found.
Tools/cython-mode.el
View file @
5b6ec593
...
...
@@ -10,6 +10,7 @@
;; Load python-mode if available, otherwise use builtin emacs python package
(
when
(
not
(
require
'python-mode
nil
t
))
(
require
'python
))
(
eval-when-compile
(
require
'rx
))
;;;###autoload
(
add-to-list
'auto-mode-alist
'
(
"\\.pyx\\'"
.
cython-mode
))
...
...
@@ -82,11 +83,14 @@ It will be passed to `format' with `buffer-file-name' as the only other argument
\\{cython-mode-map}"
(
setcar
font-lock-defaults
(
append
python-font-lock-keywords
cython-font-lock-keywords
))
(
set
(
make-local-variable
'outline-regexp
)
(
rx
(
*
space
)
(
or
"class"
"def"
"cdef"
"cpdef"
"elif"
"else"
"except"
"finally"
"for"
"if"
"try"
"while"
"with"
)
symbol-end
))
(
set
(
make-local-variable
'compile-command
)
(
format
cython-default-compile-format
(
shell-quote-argument
buffer-file-name
)))
(
add-to-list
(
make-local-variable
'compilation-finish-functions
)
'cython-compilation-finish
)
)
'cython-compilation-finish
))
(
provide
'cython-mode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment