Re: [Asterisk-Users] emacs syntax/keyowrd highlighting: asterisk-mode
Dave Grey wrote: Speaking of glaringly unworkable, like a numb-skull I edited and tested the thing with default my green-on-black color scheme. I happened to open something up in a raw black-on-white xterm and realized that I had created a nightmare. I have made the appropriate changes, so if you looked at it and said, "Hey, this is horrible...", then my apologies and give it another look. Same url and filename above, updated version noted in the comments. lyd Is it? >:) I work in a myriad of colored terms. green-on-black is the default for my local machines, other schemes are used identify remote machines... Not a show stopper for me. I have a few screen sessions open for ages. Sometimes, the only time I see a prompt is when I do M-x shell >:) I'll check out your changes the next time I need to edit a .conf file. -- JP Carballo http://www.netfone2x.com Bringing the world closer. It might look like I'm doing nothing, but at the cellular level, I'm really quite busy. ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] emacs syntax/keyowrd highlighting: asterisk-mode
On Oct 22, 2005, at 12:18 AM, Dave Grey wrote: On Oct 21, 2005, at 5:50 PM, JP Carballo wrote: Dave Grey wrote: I hacked together an emacs general/minor mode for basic font- locking (syntax shading) support. Feel free to grab it here: http://homepage.mac.com/lydanynom/asterisk-mode.el.zip Good work Dave! I suggest you post this in www.voip-info.org for future emacs/ asterisk users. Thanks, JP. That's what I intended to do, but I wanted to give it a little time for refinement before I threw it up there. If I don't find, and no one points out to me, anything glaringly unworkable in a week or so I will post it. Speaking of glaringly unworkable, like a numb-skull I edited and tested the thing with default my green-on-black color scheme. I happened to open something up in a raw black-on-white xterm and realized that I had created a nightmare. I have made the appropriate changes, so if you looked at it and said, "Hey, this is horrible...", then my apologies and give it another look. Same url and filename above, updated version noted in the comments. lyd ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] emacs syntax/keyowrd highlighting: asterisk-mode
On Oct 21, 2005, at 5:50 PM, JP Carballo wrote: Dave Grey wrote: I hacked together an emacs general/minor mode for basic font- locking (syntax shading) support. Feel free to grab it here: http://homepage.mac.com/lydanynom/asterisk-mode.el.zip Good work Dave! I suggest you post this in www.voip-info.org for future emacs/ asterisk users. Thanks, JP. That's what I intended to do, but I wanted to give it a little time for refinement before I threw it up there. If I don't find, and no one points out to me, anything glaringly unworkable in a week or so I will post it. lyd --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? http://www.faqs.org/rfcs/rfc1855.html ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] emacs syntax/keyowrd highlighting: asterisk-mode
Good work Dave! I suggest you post this in www.voip-info.org for future emacs/asterisk users. Dave Grey wrote: Hi all. I've just begun learning *, and as my dialplans and macros have gotten more complex I started wishing for a way to more easily follow the flow of various Goto, GotoIf, Dial, and etc. commands, especially when trying to use priority "n" and labels rather than numbered priorities. Toward this end, I hacked together an emacs general/minor mode for basic font-locking (syntax shading) support. Feel free to grab it here: http://homepage.mac.com/lydanynom/asterisk-mode.el.zip Feel even freer to suggest or make changes, or point me to your own major or minor asterisk-mode. A quick search before I started did not find any such thing, but in retrospect I probably should have just asked here rather than trying to reinvent the wheel. Lisp regexps give me a headache, and this was my first and likely only foray into writing emacs modes, so don't expect too much. For now, though, it seems to do what I want it to, which is, as I commented in the file: ;; Assumes applications and functions will be in the same case they appear ;; in the documentation: ;; Dial, BackGround, DISA, CALLERID, Playback, etc. ;; Assumes comma (rather than pipe) will be used as the argument delimiter, ;; and that arguments to applicatins will always be enclosed in (): ;; Goto(context,123,1) ;; ;; The principle goal of this mode is to make it easier to follow the flow ;; of a complicated dialplan with many Goto and other context-jumping apps ;; geing called. Extensions, priorities, and labels are handled in a ;; way that attempts to higlight the (potentially) operative bits while ;; subdueing the bits that can't be directly addressed. Secondarily, the ;; applications, functions, variables, and config keywords are highlighted as well, ;; each in their own face. It is intended primarily for use with extensions.conf, but it is effective in all of the configuration files. Of course, it seems that this is rapidly become moot with the advent of ael, but I haven't ventured there yet, myself. Anyway, use and enjoy, comment, or criticize as you feel is warranted. Big kudos to this list and the * community as a whole. I have learned a ton in the last two weeks, thanks to all of you. lyd -- JP Carballo http://www.netfone2x.com Bringing the world closer. It might look like I'm doing nothing, but at the cellular level, I'm really quite busy. ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] emacs syntax/keyowrd highlighting: asterisk-mode
Hi all. I've just begun learning *, and as my dialplans and macros have gotten more complex I started wishing for a way to more easily follow the flow of various Goto, GotoIf, Dial, and etc. commands, especially when trying to use priority "n" and labels rather than numbered priorities. Toward this end, I hacked together an emacs general/minor mode for basic font-locking (syntax shading) support. Feel free to grab it here: http://homepage.mac.com/lydanynom/asterisk-mode.el.zip Feel even freer to suggest or make changes, or point me to your own major or minor asterisk-mode. A quick search before I started did not find any such thing, but in retrospect I probably should have just asked here rather than trying to reinvent the wheel. Lisp regexps give me a headache, and this was my first and likely only foray into writing emacs modes, so don't expect too much. For now, though, it seems to do what I want it to, which is, as I commented in the file: ;; Assumes applications and functions will be in the same case they appear ;; in the documentation: ;; Dial, BackGround, DISA, CALLERID, Playback, etc. ;; Assumes comma (rather than pipe) will be used as the argument delimiter, ;; and that arguments to applicatins will always be enclosed in (): ;; Goto(context,123,1) ;; ;; The principle goal of this mode is to make it easier to follow the flow ;; of a complicated dialplan with many Goto and other context-jumping apps ;; geing called. Extensions, priorities, and labels are handled in a ;; way that attempts to higlight the (potentially) operative bits while ;; subdueing the bits that can't be directly addressed. Secondarily, the ;; applications, functions, variables, and config keywords are highlighted as well, ;; each in their own face. It is intended primarily for use with extensions.conf, but it is effective in all of the configuration files. Of course, it seems that this is rapidly become moot with the advent of ael, but I haven't ventured there yet, myself. Anyway, use and enjoy, comment, or criticize as you feel is warranted. Big kudos to this list and the * community as a whole. I have learned a ton in the last two weeks, thanks to all of you. lyd ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users