Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7eb67d79
Commit
7eb67d79
authored
Nov 24, 1997
by
Richard M. Stallman
Browse files
(lisp-mode-auto-fill): New function.
(lisp-mode-variables): Bind normal-auto-fill-function.
parent
1061ff16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/lisp-mode.el
+13
-0
No files found.
lisp/emacs-lisp/lisp-mode.el
View file @
7eb67d79
...
...
@@ -109,6 +109,8 @@
;; because lisp-fill-paragraph should do the job.
(
make-local-variable
'adaptive-fill-mode
)
(
setq
adaptive-fill-mode
nil
)
(
make-local-variable
'normal-auto-fill-function
)
(
setq
normal-auto-fill-function
'lisp-mode-auto-fill
)
(
make-local-variable
'indent-line-function
)
(
setq
indent-line-function
'lisp-indent-line
)
(
make-local-variable
'indent-region-function
)
...
...
@@ -362,6 +364,17 @@ With argument, insert value in current buffer after the defun."
(
max
(
if
(
bolp
)
0
(
1+
(
current-column
)))
comment-column
))))
(
defun
lisp-mode-auto-fill
()
(
if
(
>
(
current-column
)
(
current-fill-column
))
(
if
(
save-excursion
(
nth
4
(
parse-partial-sexp
(
save-excursion
(
beginning-of-defun
)
(
point
))
(
point
))))
(
do-auto-fill
)
(
let
((
comment-start
nil
)
(
comment-start-skip
nil
))
(
do-auto-fill
)))))
(
defvar
lisp-indent-offset
nil
""
)
(
defvar
lisp-indent-function
'lisp-indent-function
""
)
...
...
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