From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q48Ln7E9021894 for ; Tue, 8 May 2012 23:49:07 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8CAPyTqU/RVdc2imdsb2JhbABEoQiSHAgiAQEBCgkNBxIGI4IMAQEBBBICLAEbEgsBAwwGBQsNDSEiAREBBQEKEgYTCAoQh10BAwsLnC8JA4wkgnOFEwoZJwMKV4h2AQULiniGEgSVfoERjVE9hA0 X-IronPort-AV: E=Sophos;i="4.75,553,1330902000"; d="scan'208";a="142969035" Received: from mail-lpp01m010-f54.google.com ([209.85.215.54]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 May 2012 23:49:01 +0200 Received: by lagv3 with SMTP id v3so8267196lag.27 for ; Tue, 08 May 2012 14:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=yP5IVju/TSyCj9iJkBHkmlZ5/ywacOT1eY6zyFhw4u8=; b=RUrgKzgSNFdGvYjjR2VboYVAVchc8+4hnkEubN4i1GNHpf1vPiAZxZVUtCwp4/EHvk zRCiamGeGelt5FgusgQ82tQO4/DcDGK473uHmUkEZm6xeK6VkYaR2aupIkmdMRhWS407 GGoAmSswQZTtKsPLOJAJ67h4CGeSdgHnWE/0qCOrGWQP1xO+cUB5650Kg/81Njmmv60u ZBXyYeVqZf6PBxe2jK3Q+/LAwcPD4iGmMih34PTytJp/S/bIxu+j73eRIGy1xEckL1V/ wqUEcV22+FGZrX04hD8DixGcKRctb8/kGOPB8veYhiiwAi4wSjzn+WEnNixL6Q4Xx0mS KqqA== MIME-Version: 1.0 Received: by 10.152.103.199 with SMTP id fy7mr19029701lab.48.1336513740755; Tue, 08 May 2012 14:49:00 -0700 (PDT) Received: by 10.112.115.229 with HTTP; Tue, 8 May 2012 14:49:00 -0700 (PDT) In-Reply-To: <82668C1E6B794C72A84ACBE786C5EF5F@erratique.ch> References: <0E9E732C958C4E9A860FEA1B02497060@erratique.ch> <82668C1E6B794C72A84ACBE786C5EF5F@erratique.ch> Date: Tue, 8 May 2012 22:49:00 +0100 Message-ID: From: Joel Reymont To: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q48Ln7E9021894 Subject: Re: [Caml-list] lag when using typerex What's the point of using TypeRex then? On Tue, May 8, 2012 at 10:44 PM, Daniel Bünzli wrote: > In fact there is another source of lag on osx, syntax highlighting. > > 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 > > > -- -------------------------------------------------------------------------- Working on AlgoKit, a new algorithmic trading platform using Rithmic R|API ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------