for example when I write
fixlocale() {
export LANG='en_US.UTF-8';
export LC_CTYPE='en_US.UTF-8';
}
and add close bracket it goes without indent but I don’t like it, I’d like to indent closing brackets alike:
fixlocale() {
export LANG='en_US.UTF-8';
export LC_CTYPE='en_US.UTF-8';
}
not in bash only, I want to indent closing bracket everywhere in C, C++ too. How can I tell emacs to indent closing bracket aswell as code.
In C to get this to work I did
This tells it to indent statements such as if, while, for…. and the second tells it to indent function definitions as well (not sure if you wanted for statements or functions so I gave both).