Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Emacs indentation
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Emacs indentation (Read 1286 times)
0 Members and 1 Guest are viewing this topic.
JohnSnow
Newt
Posts: 52
Emacs indentation
«
on:
September 10, 2018, 07:06:38 PM »
Hi Guys.
Just wondering if anyone uses Emacs that can help me with the indentation.
The Indentation I want is as below.
(defun c:test()
(...) ;tab when a new structure starts
);in line with function defun
Logged
JohnK
Administrator
Seagull
Posts: 10646
Re: Emacs indentation
«
Reply #1 on:
September 11, 2018, 07:51:27 AM »
From here:
http://ergoemacs.org/emacs/emacs_tabs_space_indentation_setup.html
Looks as though there is no way to always use TAB but you can use a workaround.
Code - Lisp:
[Select]
(
defun
my-insert-tab-char
(
)
"Insert a tab char. (ASCII 9,
\t
)"
(
interactive
)
(
insert
"
\t
"
)
)
(
global-set-key
(
kbd
"TAB"
)
'my-insert-tab-char
)
; same as Ctrl+i
BTW, why TAB?
Logged
TheSwamp.org
(serving the CAD community since 2003)
Member location map - Add yourself
Donate to TheSwamp.org
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Emacs indentation