* [asking] hello.. i really want to new function
@ 2022-01-30 7:56 Personal Xendia
2022-01-30 10:10 ` Tassilo Horn
0 siblings, 1 reply; 3+ messages in thread
From: Personal Xendia @ 2022-01-30 7:56 UTC (permalink / raw)
To: emacs-devel
i new emacs user.
when i search [smartindent] function, emacs dont have that.
- vscode : work on [ autoindent : keep ]
- vim : work on [ smartindent ]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [asking] hello.. i really want to new function
2022-01-30 7:56 [asking] hello.. i really want to new function Personal Xendia
@ 2022-01-30 10:10 ` Tassilo Horn
2022-01-30 10:20 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2022-01-30 10:10 UTC (permalink / raw)
To: Personal Xendia; +Cc: emacs-devel
Personal Xendia <xendia100@gmail.com> writes:
> when i search [smartindent] function, emacs dont have that.
>
> - vscode : work on [ autoindent : keep ]
> - vim : work on [ smartindent ]
Searching the web for what smartindent does in vim, I think you are
looking for emacs' `electric-indent-mode'. If you wan't a more
aggressive behavior where not only the current/next line are
auto-indented but the complete block/function, I suggest to have a look
at the aggressive-indent GNU ELPA package [1].
HTH,
Tassilo
[1] https://elpa.gnu.org/packages/aggressive-indent.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [asking] hello.. i really want to new function
2022-01-30 10:10 ` Tassilo Horn
@ 2022-01-30 10:20 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2022-01-30 10:20 UTC (permalink / raw)
To: Tassilo Horn; +Cc: xendia100, emacs-devel
> From: Tassilo Horn <tsdh@gnu.org>
> Date: Sun, 30 Jan 2022 11:10:08 +0100
> Cc: emacs-devel@gnu.org
>
> Personal Xendia <xendia100@gmail.com> writes:
>
> > when i search [smartindent] function, emacs dont have that.
> >
> > - vscode : work on [ autoindent : keep ]
> > - vim : work on [ smartindent ]
>
> Searching the web for what smartindent does in vim, I think you are
> looking for emacs' `electric-indent-mode'.
That's turned on by default in Emacs.
Which is what I wanted to reply: these features are generally turned
on by default in Emacs, unlike in other editors.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-30 10:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-30 7:56 [asking] hello.. i really want to new function Personal Xendia
2022-01-30 10:10 ` Tassilo Horn
2022-01-30 10:20 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).