digitalmars.D.learn - Indentation in emacs d-mode
- J-S (20/20) Dec 14 2018 I've tried (and failed) to get my emacs (26.1) to properly handle
- =?UTF-8?Q?Ali_=c3=87ehreli?= (3/5) Dec 14 2018 Good question. My Emacs D editing is suboptimal as well.
I've tried (and failed) to get my emacs (26.1) to properly handle 
indentation (as per the "D style") in d-mode (2.0.9).
Things that don't work:
- aligning braces below keywords like "foreach", "while", "in" 
etc: when I put the braces on the following line, I get a 4-space 
indent (while the correct behaviour should be: align);
- the "in" keyword itself gets indented 4 spaces w.r.t. the 
function name (I again get a 4-space indent, while the correct 
behaviour should be: align).
class foo {
private:
     real _bar;
public:
     creal bar;
     void fiz()
         in
             {
                 foreach (...
I'm sorry for asking such a stupid question, but can anybody 
point me to a precooked consistent set of customizations?
 Dec 14 2018
On 12/14/2018 05:37 AM, J-S wrote:I'm sorry for asking such a stupid question, but can anybody point me to a precooked consistent set of customizations?Good question. My Emacs D editing is suboptimal as well. Ali
 Dec 14 2018








 
  
  
  =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com>
 =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com>