From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q491fJ0U027361 for ; Wed, 9 May 2012 03:41:19 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoCAE7KqU+GoCGhmWdsb2JhbABEgx6CVZsikkgBAQEBAQgLCwcUJ4IMAQEEASMPAQU2EAsLGAICBQQdAgIPAjQSBg0IAQEOh24DBgULp36JJwOJXYEviVSEeoEYBIhijRyBEYRljUQ X-IronPort-AV: E=Sophos;i="4.75,554,1330902000"; d="scan'208";a="157268592" Received: from postman1.riken.jp (HELO postman.riken.jp) ([134.160.33.161]) by mail1-smtp-roc.national.inria.fr with ESMTP; 09 May 2012 03:41:13 +0200 Received: from postman.riken.jp (postman1.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 8CA0D32C018F for ; Wed, 9 May 2012 10:41:10 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 737C832A008B for ; Wed, 9 May 2012 10:41:10 +0900 (JST) Message-ID: <4FA9CB36.30401@riken.jp> Date: Wed, 09 May 2012 10:41:10 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: caml-list References: <0E9E732C958C4E9A860FEA1B02497060@erratique.ch> <82668C1E6B794C72A84ACBE786C5EF5F@erratique.ch> In-Reply-To: <82668C1E6B794C72A84ACBE786C5EF5F@erratique.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.5.9.3016 Subject: Re: [Caml-list] lag when using typerex On 05/09/2012 06:44 AM, Daniel Bünzli wrote: > In fact there is another source of lag on osx, syntax highlighting. It lags for me and I'm on Ubuntu. I guess syntax highlighting was the problem for me. > https://github.com/OCamlPro/typerex/issues/2#issuecomment-4537263 > > I just use ocaml's emacs-mode for that, see the full dump of my config below, > > Best, > > Daniel > > > ;; Typerex mode > ;; Loading TypeRex mode for OCaml files > (add-to-list 'load-path "/Users/dbuenzli/.emacs.d") > (add-to-list 'auto-mode-alist '("\\.ml[iylp]?" . typerex-mode)) > (add-to-list 'interpreter-mode-alist '("ocamlrun" . typerex-mode)) > (add-to-list 'interpreter-mode-alist '("ocaml" . typerex-mode)) > (autoload 'typerex-mode "typerex" "Major mode for editing Caml code" t) > > ;; TypeRex mode configuration > (setq ocp-server-command "/usr/local/bin/ocp-wizard") > (setq-default indent-tabs-mode nil) > (setq ocp-auto-complete t) > ;(setq ocp-theme "caml_like") > ;(setq ocp-syntax-coloring t) > > ;; Work around slow syntax highligthing. > (setq ocp-syntax-coloring nil) > (setq load-path (cons "~/.emacs.d/caml-mode" load-path)) > (if window-system (require 'caml-font)) > (add-hook 'typerex-mode-hook 'caml-font-set-font-lock) > > ; OCaml identing style > ;(setq typerex-in-indent 0) > (setq typerex-let-always-indent nil) > (setq typerex-with-indent 0) > (setq typerex-function-indent 0) > (setq typerex-fun-indent 0) > (setq typerex-type-indent 0) > (setq typerex-if-then-else-indent 0) > > > > > > > > > > > > > > > Le mardi, 8 mai 2012 à 13:10, Daniel Bünzli a écrit : > >>> Is it just me or is there a significant lag when using TypeRex in Emacs? >>> >>> This is particularly noticeable when deleting by using the backspace key. >> >> Here, the lag was due to auto complete mode. Don't invoke it automatically. That's what I have : >> >> (add-to-list 'load-path "/Users/dbuenzli/.emacs.d/auto-complete-mode") >> (require 'auto-complete-config) >> (add-to-list 'ac-dictionary-directories >> "/Users/dbuenzli/.emacs.d/auto-complete-mode/ac-dict") >> (ac-config-default) >> (global-set-key (kbd "S-") 'auto-complete) >> (setq ac-auto-start nil) >> ;;;; I want immediate menu pop-up >> ;;(setq ac-auto-show-menu 0.) >> ;;;; Short delay before showing help >> ;;(setq ac-quick-help-delay 0.3) >> ;;;; Number of characters required to start (nil to disable) >> ;;(setq ac-auto-start 0) >> >> >> >> Best, >> >> Daniel >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa-roc.inria.fr/wws/info/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > >