[ESS] how to indent buffer

Frede Aakmann Tøgersen frtog at vestas.com
Tue May 14 15:53:24 CEST 2013


Hi

This has helped me when I was in a hurry. However I'm quite sure that someone on this list may have a more sophisticated solution.

(defun my-indent-buffer()
  (interactive)
  (save-excursion
    (indent-region (point-min) (point-max))))

(global-set-key "\C-cib" 'my-indent-buffer)



Yours sincerely / Med venlig hilsen


Frede Aakmann Tøgersen
Specialist, M.Sc., Ph.D.
Modeling/Software
Service Engineering

Technology & Service Solutions
T +45 9730 5135
M +45 2547 6050
frtog at vestas.com
http://www.vestas.com

Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sender. 


-----Original Message-----
From: ess-help-bounces at r-project.org [mailto:ess-help-bounces at r-project.org] On Behalf Of Bond, Stephen
Sent: 14. maj 2013 15:42
To: ess-help at stat.math.ethz.ch
Subject: [ESS] how to indent buffer

Dear ESS users,

Please, help if there is a command to indent a whole R buffer or a region. That command is quite common in GUIs for other languages and even in emacs modes for Fortran or C, but I can't find it in ESS and the indent expression command does not seem to indent regions.
Thanks everybody

Stephen B

______________________________________________
ESS-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list