I hacked it a bit and came closer, but not yet fully operational. The solution I have is to add an entry to align-rules-list, so a simple one M-x alignwill do the trick. The problem is that you need to run twice alignto make it work.
(obj-c-colons
(regexp . "^\\(\\s-*[^:]+\\):")
(justify . t)
(repeat . t)
(modes obj-c-mode)) ;; <= Replace with actual name of major mode
, objective-c, obj-c-mode , . align-rules-list :
(add-to-list 'align-rules-list
'(obj-c-colons
(regexp . "^\\(\\s-*[^:]+\\):")
(justify . t)
(repeat . t)
(modes obj-c-mode)))
align ; :
NSTimer *timer =
[NSTimer timerWithTimeInterval:1.0
target:self
selector:@selector(callback:)
userInfo:nil
repeats:YES];
, . align . , .
align , . , - . , EmacsWiki .