Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G gendl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gendl
  • gendl
  • Issues
  • #114
Closed
Open
Issue created Mar 31, 2015 by Dave Cooper@dcooperOwner

Default indentation level on new line

Created by: reiniervandijk

It's sort of annoying to type code right now in Emacs (Slime mode). Whenever I move to the next line (pressing ENTER or C+n), the indentation level moves to the left border of the screen. A manual TAB input is then required to indent or a C-M-q on the entire expression when finished. It sort of delays the scripting process. So, to illustrate

(defun foo ()
here ...

Ideally, it should be:

(defun foo ()
  here ...

Imported comments:

By genworks on 2013-01-30 21:01:45 UTC

This is mentioned in emacs/gdl.el, with a solution:

;; ;; Use C-j for newline-and-indent. If you really like it, you can bind ;; it to [Enter] by uncommenting the following line (from ;; http://emacswiki.org/emacs/AutoIndentation). ;; ;;(global-set-key (kbd "C-m") 'newline-and-indent) ;;

We will add mention of this to the Manual.

Assignee
Assign to
Time tracking