Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
73eec636
Commit
73eec636
authored
Sep 01, 2000
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted. Long obsolete.
parent
0fdd3dcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
Misc/ccpy-style.el
Misc/ccpy-style.el
+0
-48
No files found.
Misc/ccpy-style.el
deleted
100644 → 0
View file @
0fdd3dcc
;;; ccpy-style.el --- cc-mode style definition for Python C code
;;
;; Author: 1996 Barry A. Warsaw
;; Created: 6-Dec-1996
;; Keywords: c python languages oop
;;; Commentary
;;
;; NOTE: This file is obsolete! All current versions of CC Mode
;; include a "python" style by default.
;; This file defines the standard C coding style for Python C files
;; and modules. It is compatible with cc-mode.el which should be a
;; standard part of your Emacs distribution (or see
;; <http://www.python.org/emacs/cc-mode>).
;; To use, make sure this file is on your Emacs load-path, and simply
;; add this to your .emacs file:
;;
;; (add-hook 'c-mode-common-hook '(lambda () (require 'python-style)))
;; This file will self-install on your c-style-alist variable,
;; although you will have to install it on a per-file basis with:
;;
;; M-x c-set-style RET python RET
;;; Code:
(
defconst
python-cc-style
'
((
indent-tabs-mode
.
t
)
(
c-basic-offset
.
8
)
(
c-offsets-alist
.
((
substatement-open
.
0
)
))
(
c-hanging-braces-alist
.
((
brace-list-open
)
(
brace-list-intro
)
(
brace-list-close
)
(
substatement-open
after
)
(
block-close
.
c-snug-do-while
)
))
)
"Standard Python C coding style."
)
(
require
'cc-mode
)
(
if
(
not
(
assoc
"python"
c-style-alist
))
(
c-add-style
"python"
python-cc-style
))
(
provide
'ccpy-style
)
;;; ccpy-style.el ends here
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