I am using pine-script-mode for TradingView Pine script.
When I follow https://emacs.stackexchange.com/a/17565/18414 I have applied:
(defun my-custom-settings-fn ()
(setq indent-tabs-mode nil)
(setq tab-width 4)
(setq indent-line-function 'insert-tab))
(add-hook 'pine-script-mode-hook 'my-custom-settings-fn)
Hence still TABs make 3 space inden. How can I force pine-script-mode
to do indention as 4 space?
I have in the following code when cursor is at the beginning of SLEEP_BAR := 20
and tab applied 3 space is added :
example.pine file:
if timeframe.isseconds
SLEEP_BAR := 20 // when I applied TAB at the beginning of the line 3 spaces added
- In the
example.pine
buffer,C-h v tab-width
says 4