Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set cperl-mode to indent parens as block #14

Closed
cnd opened this issue Mar 9, 2013 · 2 comments
Closed

How to set cperl-mode to indent parens as block #14

cnd opened this issue Mar 9, 2013 · 2 comments

Comments

@cnd
Copy link

cnd commented Mar 9, 2013

Hello I want to write code blocks alike following:

xxx {
  yyy
  }

I saw this

(defcustom cperl-indent-parens-as-block nil
  "*Non-nil means that non-block ()-, {}- and []-groups are indented as blocks,
but for trailing \",\" inside the group, which won't increase indentation.
One should tune up `cperl-close-paren-offset' as well."
  :type 'boolean
  :group 'cperl-indentation-details)

And was trying to add this:

(setq cperl-indent-parens-as-block t)

https://github.com/Cynede/emacs.d/commit/a93298c882dbd5170636df7c7e53711bb1b94ba0

I expected it will indent closing block bracket but it doesn't. And I can't detect any other changes.

When I set

(defcustom cperl-indent-parens-as-block t
    ...

in code it doesn't indent closing block bracket too.

@CeleritasCelery
Copy link

@cnd
Copy link
Author

cnd commented Mar 4, 2017

sorry, outdated =)

@cnd cnd closed this as completed Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants