all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Personal Xendia <xendia100@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [asking] hello.. i really want to new function
Date: Sun, 30 Jan 2022 11:10:08 +0100	[thread overview]
Message-ID: <87y22xr0ms.fsf@gnu.org> (raw)
In-Reply-To: <898602B8-CE70-46D8-9B41-FBA05D10AC61@gmail.com>

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



  reply	other threads:[~2022-01-30 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-30  7:56 [asking] hello.. i really want to new function Personal Xendia
2022-01-30 10:10 ` Tassilo Horn [this message]
2022-01-30 10:20   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y22xr0ms.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=xendia100@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.